|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
A critical component of any IoT project is what to do with all the data being generated. This data needs to be captured, processed, structured, and stored in a way to facilitate different kinds of queries. Traditional data warehouse and analytical systems are mature technologies that can be used to handle certain kinds of queries, but they are not always well suited to many problems, particularly when there is a need for real-time insights.
Jul. 23, 2016 08:45 PM EDT Reads: 1,626
CenturyLink has announced that application server solutions from GENBAND are now available as part of CenturyLink’s Networx contracts. The General Services Administration (GSA)’s Networx program includes the largest telecommunications contract vehicles ever awarded by the federal government. CenturyLink recently secured an extension through spring 2020 of its offerings available to federal government agencies via GSA’s Networx Universal and Enterprise contracts. GENBAND’s EXPERiUS™ Application...
Jul. 23, 2016 08:30 PM EDT Reads: 1,760
"My role is working with customers, helping them go through this digital transformation. I spend a lot of time talking to banks, big industries, manufacturers working through how they are integrating and transforming their IT platforms and moving them forward," explained William Morrish, General Manager Product Sales at Interoute, in this SYS-CON.tv interview at 18th Cloud Expo, held June 7-9, 2016, at the Javits Center in New York City, NY.
Jul. 23, 2016 08:30 PM EDT Reads: 2,004
Internet of @ThingsExpo, taking place November 1-3, 2016, at the Santa Clara Convention Center in Santa Clara, CA, is co-located with the 19th International Cloud Expo and will feature technical sessions from a rock star conference faculty and the leading industry players in the world and ThingsExpo Silicon Valley Call for Papers is now open.
Jul. 23, 2016 08:00 PM EDT Reads: 2,399
Big Data engines are powering a lot of service businesses right now. Data is collected from users from wearable technologies, web behaviors, purchase behavior as well as several arbitrary data points we’d never think of. The demand for faster and bigger engines to crunch and serve up the data to services is growing exponentially. You see a LOT of correlation between “Cloud” and “Big Data” but on Big Data and “Hybrid,” where hybrid hosting is the sanest approach to the Big Data Infrastructure pro...
Jul. 23, 2016 08:00 PM EDT Reads: 1,766
The IoT is changing the way enterprises conduct business. In his session at @ThingsExpo, Eric Hoffman, Vice President at EastBanc Technologies, discussed how businesses can gain an edge over competitors by empowering consumers to take control through IoT. He cited examples such as a Washington, D.C.-based sports club that leveraged IoT and the cloud to develop a comprehensive booking system. He also highlighted how IoT can revitalize and restore outdated business models, making them profitable ...
Jul. 23, 2016 07:15 PM EDT Reads: 1,858
We all know the latest numbers: Gartner, Inc. forecasts that 6.4 billion connected things will be in use worldwide in 2016, up 30 percent from last year, and will reach 20.8 billion by 2020. We're rapidly approaching a data production of 40 zettabytes a day – more than we can every physically store, and exabytes and yottabytes are just around the corner. For many that’s a good sign, as data has been proven to equal money – IF it’s ingested, integrated, and analyzed fast enough. Without real-ti...
Jul. 23, 2016 07:00 PM EDT Reads: 832
I wanted to gather all of my Internet of Things (IOT) blogs into a single blog (that I could later use with my University of San Francisco (USF) Big Data “MBA” course). However as I started to pull these blogs together, I realized that my IOT discussion lacked a vision; it lacked an end point towards which an organization could drive their IOT envisioning, proof of value, app dev, data engineering and data science efforts. And I think that the IOT end point is really quite simple…
Jul. 23, 2016 06:15 PM EDT Reads: 770
With 15% of enterprises adopting a hybrid IT strategy, you need to set a plan to integrate hybrid cloud throughout your infrastructure. In his session at 18th Cloud Expo, Steven Dreher, Director of Solutions Architecture at Green House Data, discussed how to plan for shifting resource requirements, overcome challenges, and implement hybrid IT alongside your existing data center assets. Highlights included anticipating workload, cost and resource calculations, integrating services on both sides...
Jul. 23, 2016 06:00 PM EDT Reads: 1,870
"We are a well-established player in the application life cycle management market and we also have a very strong version control product," stated Flint Brenton, CEO of CollabNet,, in this SYS-CON.tv interview at 18th Cloud Expo, held June 7-9, 2016, at the Javits Center in New York City, NY.
Jul. 23, 2016 05:30 PM EDT Reads: 1,707
The IoT has the potential to create a renaissance of manufacturing in the US and elsewhere. In his session at 18th Cloud Expo, Florent Solt, CTO and chief architect of Netvibes, discussed how the expected exponential increase in the amount of data that will be processed, transported, stored, and accessed means there will be a huge demand for smart technologies to deliver it. Florent Solt is the CTO and chief architect of Netvibes. Prior to joining Netvibes in 2007, he co-founded Rift Technologi...
Jul. 23, 2016 05:00 PM EDT Reads: 932
We're entering the post-smartphone era, where wearable gadgets from watches and fitness bands to glasses and health aids will power the next technological revolution. With mass adoption of wearable devices comes a new data ecosystem that must be protected. Wearables open new pathways that facilitate the tracking, sharing and storing of consumers’ personal health, location and daily activity data. Consumers have some idea of the data these devices capture, but most don’t realize how revealing and...
Jul. 23, 2016 04:00 PM EDT Reads: 1,970
Unless your company can spend a lot of money on new technology, re-engineering your environment and hiring a comprehensive cybersecurity team, you will most likely move to the cloud or seek external service partnerships. In his session at 18th Cloud Expo, Darren Guccione, CEO of Keeper Security, revealed what you need to know when it comes to encryption in the cloud.
Jul. 23, 2016 04:00 PM EDT Reads: 2,297
What are the successful IoT innovations from emerging markets? What are the unique challenges and opportunities from these markets? How did the constraints in connectivity among others lead to groundbreaking insights? In her session at @ThingsExpo, Carmen Feliciano, a Principal at AMDG, will answer all these questions and share how you can apply IoT best practices and frameworks from the emerging markets to your own business.
Jul. 23, 2016 03:45 PM EDT Reads: 1,500
Basho Technologies has announced the latest release of Basho Riak TS, version 1.3. Riak TS is an enterprise-grade NoSQL database optimized for Internet of Things (IoT). The open source version enables developers to download the software for free and use it in production as well as make contributions to the code and develop applications around Riak TS. Enhancements to Riak TS make it quick, easy and cost-effective to spin up an instance to test new ideas and build IoT applications. In addition to...
Jul. 23, 2016 03:30 PM EDT Reads: 1,836
You think you know what’s in your data. But do you? Most organizations are now aware of the business intelligence represented by their data. Data science stands to take this to a level you never thought of – literally. The techniques of data science, when used with the capabilities of Big Data technologies, can make connections you had not yet imagined, helping you discover new insights and ask new questions of your data. In his session at @ThingsExpo, Sarbjit Sarkaria, data science team lead ...
Jul. 23, 2016 03:15 PM EDT Reads: 810
Extracting business value from Internet of Things (IoT) data doesn’t happen overnight. There are several requirements that must be satisfied, including IoT device enablement, data analysis, real-time detection of complex events and automated orchestration of actions. Unfortunately, too many companies fall short in achieving their business goals by implementing incomplete solutions or not focusing on tangible use cases. In his general session at @ThingsExpo, Dave McCarthy, Director of Products...
Jul. 23, 2016 03:00 PM EDT Reads: 1,650
Ask someone to architect an Internet of Things (IoT) solution and you are guaranteed to see a reference to the cloud. This would lead you to believe that IoT requires the cloud to exist. However, there are many IoT use cases where the cloud is not feasible or desirable. In his session at @ThingsExpo, Dave McCarthy, Director of Products at Bsquare Corporation, will discuss the strategies that exist to extend intelligence directly to IoT devices and sensors, freeing them from the constraints of ...
Jul. 23, 2016 02:30 PM EDT Reads: 1,701
WebRTC is bringing significant change to the communications landscape that will bridge the worlds of web and telephony, making the Internet the new standard for communications. Cloud9 took the road less traveled and used WebRTC to create a downloadable enterprise-grade communications platform that is changing the communication dynamic in the financial sector. In his session at @ThingsExpo, Leo Papadopoulos, CTO of Cloud9, discussed the importance of WebRTC and how it enables companies to focus...
Jul. 23, 2016 02:15 PM EDT Reads: 628
The best-practices for building IoT applications with Go Code that attendees can use to build their own IoT applications. In his session at @ThingsExpo, Indraneel Mitra, Senior Solutions Architect & Technology Evangelist at Cognizant, provided valuable information and resources for both novice and experienced developers on how to get started with IoT and Golang in a day. He also provided information on how to use Intel Arduino Kit, Go Robotics API and AWS IoT stack to build an application tha...
Jul. 23, 2016 01:00 PM EDT Reads: 827