|By Philippe Cohen, Paolo de Nictolis||
|October 31, 2007 02:00 PM EDT||
We all know and love the Microsoft Visual Studio IDE, but did you know that you can use it to create Web and server applications that run on open systems such as Solaris or Linux? Urix, a predictive modeling software company and Mainsoft customer since 2005, is doing just that.
In January 2005, Urix migrated the development of its RiskSmart calculation engine from C to C#. RiskSmart consists of 150,000 lines of C# code and executes as a set of .NET assemblies, with no user interface, as part of a comprehensive solution for analyzing health care risks and associated costs.
However, according to Atul Mistry, vice-president of technology at Urix, the product's reliance on Windows and .NET effectively limited its market potential. "Our business partners have standardized on Unix, and virtually all of our largest health care insurance customers have Unix-only requirements in their datacenters, running on AIX, HP-UX, or Solaris. We figured we could convince some of the insurance companies to use Windows and .NET, but this wouldn't solve the significant sales barrier we faced. We also considered delivering RiskSmart as a Software as a Service (SaaS) offering, but the healthcare industry is not yet ready for this type of approach. Bottom line is we would lose significant business opportunities if we didn't deliver a Unix deployment."
Mistry considered rewriting RiskSmart in Java and maintaining two source bases. He estimated the rewrite would take two person-years for the initial port to Java, plus two Java developers on an ongoing basis to support ongoing maintenance and enhancement costs. "This approach would cost on the order of $200,000 annually," he explains.
Instead, Mistry chose Mainsoft's cross-compilation software, Mainsoft for Java EE. The software plugs into the Visual Studio development environment and compiles Microsoft's Common Intermediate Language (CIL) into Java bytecode. It also supports a long-term single source code development strategy across .NET and Java.
"The initial port of RiskSmart to Java using Mainsoft took about two person-weeks," Mistry said. "The port was exceptionally easy in part because the ported Java code ran directly on a Java VM. Because there was no user interface component to RiskSmart, there were no complexities associated with an application server. There were only a couple of things we had to do manually," he explained. "We used log4net, an Apache project, as our logging utility, and we simply had to switch that to log4j during the port. The second thing was that we used a lot of XML, and there are some inconsistencies between Microsoft XML and other implementations. Mainsoft's support team helped us resolve both these issues very quickly."
According to Mistry, "There's no apparent performance difference between the .NET and Java versions of the application. We take a minor performance hit in our current Java release because .NET 1.1 doesn't support generics and requires us to use boxing (or casting) in our code, which can have a negative effect on Java performance. We expect the minor performance gap will be eliminated when we upgrade to .NET 2.0 and take full advantage of generics, which is supported by Mainsoft, in lieu of boxing."
RiskSmart is currently in its third Java release and is now in production at virtually all of its largest health insurance customers' data centers, supporting 70% of all lives that are analyzed by the RiskSmart calculation engine. The development team builds the application nightly, and then executes Mainsoft to build the Java port. "Most product testing occurs on the .NET version, with some testing done on the Java side to assure its integrity. When RiskSmart for .NET is ready to ship, so is RiskSmart for Java."
Starting in .NET 2.0
If you're a Visual Studio developer, you can start with Mainsoft's Grasshopper to explore how to cross-compile and debug Java EE applications from Visual Studio. Grasshopper 2.0 is Mainsoft's freely available Developer Edition that includes a plug-in to Visual Studio 2005 and the open source Tomcat servlet engine for executing Java JSP and EE applications on a single CPU. You'll find that if you know C# or Visual Basic, you're on your way to becoming a Java EE developer!
One example to get you started is a Web-based accounting application with membership and role-based security using ASP.NET 2.0. The application uses Master Pages and the Login, Wizard, and Gridview controls and was originally developed by Paolo de Nictolis for JavaDay 2006 in Rome (http://roma.javaday.it ). The application relies on Mainsoft's full implementation of the ASP.NET 2.0 Membership, Role, and Profile providers based on Apache Derby (http://db.apache.org/derby/), an embedded database that offers a pure Java runtime alternative to MS SQL Express. Paolo shows you how to access application data, which remains stored in MS SQL Express 2005 (www.microsoft.com/sql/editions/express/default.mspx); how to take advantage of the integrated debugger, based on open standard JPDA (Java Platform Debugger Architecture, http://java.sun.com/products/jpda/); and how to create a deployment package that can be used over multi-platform application servers.
Let's take a deeper look at implementing this accounting application using Mainsoft's Grasshopper 2.0.
You'll have to download a few files from several places first. The setup file for JD Expenses is available at http://dev.mainsoft.com/JDExpensesDemo. It assumes you have Visual Studio 2005 with Service Pack 1 (SP1) installed.
The next thing you'll need to download is Grasshopper 2.0, which is available at http://dev.mainsoft.com/Default.aspx?tabid=117. Installation instructions along with release notes, feature limitations, and known issues are there as well. Basic requirements include a Windows XP SP2 machine, a Windows 2003 Server, or Windows Vista Ultimate or Business.
Note: If you choose to install Grasshopper on Windows Vista, you must launch Visual Studio from an administrator command prompt and launch the Tomcat application server as an administrator.
Starting with a Database
There's no denying it. Creating a well-designed application database can help make application development proceed much faster. JDExpenses, our imaginary accounting application, allows conference speakers to input their expenses, and the administrator to view each person's balances, while role-based authentication is provided out-of-the-box by the ASP.NET 2.0 Membership and Role API. Balance is defined as a BigInteger to demonstrate how Grasshopper handles a native Java type.
Database structure is shown in Figure 1. For us to use the SQL Server from a Grasshopper application, we have to configure it: we'll log in using SQL Server authentication and enable Mixed Mode Authentication in the database Properties. To do this, you can use Microsoft's SQL Server Management Studio Express (SSMSE) tool freely available for download from Microsoft at www.microsoft.com/downloads/details.aspx?familyid=C243A5AE-4BD1-
Launch SSMSE, sign in, select the database, and right-click. From the context menu, select Properties. You'll see the SQL Server Properties dialog. Select Security and make sure that the SQL Server and Windows Authentication mode radio button is selected.
|jnsoneji 10/31/07 10:12:51 PM EDT|
Trackback Added: http://jnsoneji.spaces.live.com/Blog/cns!37E7335732E61C89!256.entry; Building Pure Java Apps Using Visual Studio
WebRTC: together these advances have created a perfect storm of technologies that are disrupting and transforming classic communications models and ecosystems. In his session at WebRTC Summit, Cary Bran, VP of Innovation and New Ventures at Plantronics and PLT Labs, will provide an overview of this technological shift, including associated business and consumer communications impacts, and opportunities it may enable, complement or entirely transform.
Oct. 10, 2015 02:15 AM EDT Reads: 755
SYS-CON Events announced today that Dyn, the worldwide leader in Internet Performance, will exhibit at SYS-CON's 17th International Cloud Expo®, which will take place on November 3-5, 2015, at the Santa Clara Convention Center in Santa Clara, CA. Dyn is a cloud-based Internet Performance company. Dyn helps companies monitor, control, and optimize online infrastructure for an exceptional end-user experience. Through a world-class network and unrivaled, objective intelligence into Internet conditions, Dyn ensures traffic gets delivered faster, safer, and more reliably than ever.
Oct. 10, 2015 02:00 AM EDT Reads: 652
WebRTC services have already permeated corporate communications in the form of videoconferencing solutions. However, WebRTC has the potential of going beyond and catalyzing a new class of services providing more than calls with capabilities such as mass-scale real-time media broadcasting, enriched and augmented video, person-to-machine and machine-to-machine communications. In his session at @ThingsExpo, Luis Lopez, CEO of Kurento, will introduce the technologies required for implementing these ideas and some early experiments performed in the Kurento open source software community in areas ...
Oct. 10, 2015 01:00 AM EDT Reads: 757
Too often with compelling new technologies market participants become overly enamored with that attractiveness of the technology and neglect underlying business drivers. This tendency, what some call the “newest shiny object syndrome,” is understandable given that virtually all of us are heavily engaged in technology. But it is also mistaken. Without concrete business cases driving its deployment, IoT, like many other technologies before it, will fade into obscurity.
Oct. 10, 2015 12:00 AM EDT Reads: 176
Today air travel is a minefield of delays, hassles and customer disappointment. Airlines struggle to revitalize the experience. GE and M2Mi will demonstrate practical examples of how IoT solutions are helping airlines bring back personalization, reduce trip time and improve reliability. In their session at @ThingsExpo, Shyam Varan Nath, Principal Architect with GE, and Dr. Sarah Cooper, M2Mi's VP Business Development and Engineering, will explore the IoT cloud-based platform technologies driving this change including privacy controls, data transparency and integration of real time context w...
Oct. 9, 2015 10:15 PM EDT Reads: 144
Who are you? How do you introduce yourself? Do you use a name, or do you greet a friend by the last four digits of his social security number? Assuming you don’t, why are we content to associate our identity with 10 random digits assigned by our phone company? Identity is an issue that affects everyone, but as individuals we don’t spend a lot of time thinking about it. In his session at @ThingsExpo, Ben Klang, Founder & President of Mojo Lingo, will discuss the impact of technology on identity. Should we federate, or not? How should identity be secured? Who owns the identity? How is identity ...
Oct. 9, 2015 10:00 PM EDT Reads: 453
The IoT market is on track to hit $7.1 trillion in 2020. The reality is that only a handful of companies are ready for this massive demand. There are a lot of barriers, paint points, traps, and hidden roadblocks. How can we deal with these issues and challenges? The paradigm has changed. Old-style ad-hoc trial-and-error ways will certainly lead you to the dead end. What is mandatory is an overarching and adaptive approach to effectively handle the rapid changes and exponential growth.
Oct. 9, 2015 10:00 PM EDT Reads: 249
The buzz continues for cloud, data analytics and the Internet of Things (IoT) and their collective impact across all industries. But a new conversation is emerging - how do companies use industry disruption and technology enablers to lead in markets undergoing change, uncertainty and ambiguity? Organizations of all sizes need to evolve and transform, often under massive pressure, as industry lines blur and merge and traditional business models are assaulted and turned upside down. In this new data-driven world, marketplaces reign supreme while interoperability, APIs and applications deliver un...
Oct. 9, 2015 08:00 PM EDT Reads: 320
Electric power utilities face relentless pressure on their financial performance, and reducing distribution grid losses is one of the last untapped opportunities to meet their business goals. Combining IoT-enabled sensors and cloud-based data analytics, utilities now are able to find, quantify and reduce losses faster – and with a smaller IT footprint. Solutions exist using Internet-enabled sensors deployed temporarily at strategic locations within the distribution grid to measure actual line loads.
Oct. 9, 2015 06:30 PM EDT Reads: 143
The Internet of Everything is re-shaping technology trends–moving away from “request/response” architecture to an “always-on” Streaming Web where data is in constant motion and secure, reliable communication is an absolute necessity. As more and more THINGS go online, the challenges that developers will need to address will only increase exponentially. In his session at @ThingsExpo, Todd Greene, Founder & CEO of PubNub, will explore the current state of IoT connectivity and review key trends and technology requirements that will drive the Internet of Things from hype to reality.
Oct. 9, 2015 05:30 PM EDT Reads: 124
The Internet of Things (IoT) is growing rapidly by extending current technologies, products and networks. By 2020, Cisco estimates there will be 50 billion connected devices. Gartner has forecast revenues of over $300 billion, just to IoT suppliers. Now is the time to figure out how you’ll make money – not just create innovative products. With hundreds of new products and companies jumping into the IoT fray every month, there’s no shortage of innovation. Despite this, McKinsey/VisionMobile data shows "less than 10 percent of IoT developers are making enough to support a reasonably sized team....
Oct. 9, 2015 04:00 PM EDT Reads: 252
You have your devices and your data, but what about the rest of your Internet of Things story? Two popular classes of technologies that nicely handle the Big Data analytics for Internet of Things are Apache Hadoop and NoSQL. Hadoop is designed for parallelizing analytical work across many servers and is ideal for the massive data volumes you create with IoT devices. NoSQL databases such as Apache HBase are ideal for storing and retrieving IoT data as “time series data.”
Oct. 9, 2015 03:45 PM EDT Reads: 510
Today’s connected world is moving from devices towards things, what this means is that by using increasingly low cost sensors embedded in devices we can create many new use cases. These span across use cases in cities, vehicles, home, offices, factories, retail environments, worksites, health, logistics, and health. These use cases rely on ubiquitous connectivity and generate massive amounts of data at scale. These technologies enable new business opportunities, ways to optimize and automate, along with new ways to engage with users.
Oct. 9, 2015 02:00 PM EDT Reads: 191
The IoT is upon us, but today’s databases, built on 30-year-old math, require multiple platforms to create a single solution. Data demands of the IoT require Big Data systems that can handle ingest, transactions and analytics concurrently adapting to varied situations as they occur, with speed at scale. In his session at @ThingsExpo, Chad Jones, chief strategy officer at Deep Information Sciences, will look differently at IoT data so enterprises can fully leverage their IoT potential. He’ll share tips on how to speed up business initiatives, harness Big Data and remain one step ahead by apply...
Oct. 9, 2015 01:45 PM EDT Reads: 566
There will be 20 billion IoT devices connected to the Internet soon. What if we could control these devices with our voice, mind, or gestures? What if we could teach these devices how to talk to each other? What if these devices could learn how to interact with us (and each other) to make our lives better? What if Jarvis was real? How can I gain these super powers? In his session at 17th Cloud Expo, Chris Matthieu, co-founder and CTO of Octoblu, will show you!
Oct. 9, 2015 01:15 PM EDT
As a company adopts a DevOps approach to software development, what are key things that both the Dev and Ops side of the business must keep in mind to ensure effective continuous delivery? In his session at DevOps Summit, Mark Hydar, Head of DevOps, Ericsson TV Platforms, will share best practices and provide helpful tips for Ops teams to adopt an open line of communication with the development side of the house to ensure success between the two sides.
Oct. 9, 2015 01:00 PM EDT Reads: 620
SYS-CON Events announced today that ProfitBricks, the provider of painless cloud infrastructure, will exhibit at SYS-CON's 17th International Cloud Expo®, which will take place on November 3–5, 2015, at the Santa Clara Convention Center in Santa Clara, CA. ProfitBricks is the IaaS provider that offers a painless cloud experience for all IT users, with no learning curve. ProfitBricks boasts flexible cloud servers and networking, an integrated Data Center Designer tool for visual control over the cloud and the best price/performance value available. ProfitBricks was named one of the coolest Clo...
Oct. 9, 2015 01:00 PM EDT Reads: 805
SYS-CON Events announced today that IBM Cloud Data Services has been named “Bronze Sponsor” of SYS-CON's 17th Cloud Expo, which will take place on November 3–5, 2015, at the Santa Clara Convention Center in Santa Clara, CA. IBM Cloud Data Services offers a portfolio of integrated, best-of-breed cloud data services for developers focused on mobile computing and analytics use cases.
Oct. 9, 2015 12:00 PM EDT Reads: 744
SYS-CON Events announced today that Sandy Carter, IBM General Manager Cloud Ecosystem and Developers, and a Social Business Evangelist, will keynote at the 17th International Cloud Expo®, which will take place on November 3–5, 2015, at the Santa Clara Convention Center in Santa Clara, CA.
Oct. 9, 2015 11:15 AM EDT
Developing software for the Internet of Things (IoT) comes with its own set of challenges. Security, privacy, and unified standards are a few key issues. In addition, each IoT product is comprised of at least three separate application components: the software embedded in the device, the backend big-data service, and the mobile application for the end user's controls. Each component is developed by a different team, using different technologies and practices, and deployed to a different stack/target - this makes the integration of these separate pipelines and the coordination of software upd...
Oct. 9, 2015 09:00 AM EDT Reads: 299