|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
"At our booth we are showing how to provide trust in the Internet of Things. Trust is where everything starts to become secure and trustworthy. Now with the scaling of the Internet of Things it becomes an interesting question – I've heard numbers from 200 billion devices next year up to a trillion in the next 10 to 15 years," explained Johannes Lintzen, Vice President of Sales at Utimaco, in this SYS-CON.tv interview at @ThingsExpo, held Nov 4–6, 2014, at the Santa Clara Convention Center in Santa Clara, CA.
Dec. 17, 2014 11:00 PM EST Reads: 1,261
The Internet of Things is a misnomer. That implies that everything is on the Internet, and that simply should not be - especially for things that are blurring the line between medical devices that stimulate like a pacemaker and quantified self-sensors like a pedometer or pulse tracker. The mesh of things that we manage must be segmented into zones of trust for sensing data, transmitting data, receiving command and control administrative changes, and peer-to-peer mesh messaging. In his session at @ThingsExpo, Ryan Bagnulo, Solution Architect / Software Engineer at SOA Software, focused on desi...
Dec. 17, 2014 09:15 PM EST Reads: 1,184
"For over 25 years we have been working with a lot of enterprise customers and we have seen how companies create applications. And now that we have moved to cloud computing, mobile, social and the Internet of Things, we see that the market needs a new way of creating applications," stated Jesse Shiah, CEO, President and Co-Founder of AgilePoint Inc., in this SYS-CON.tv interview at 15th Cloud Expo, held Nov 4–6, 2014, at the Santa Clara Convention Center in Santa Clara, CA.
Dec. 17, 2014 08:00 PM EST Reads: 1,234
SYS-CON Events announced today that Gridstore™, the leader in hyper-converged infrastructure purpose-built to optimize Microsoft workloads, will exhibit at SYS-CON's 16th International Cloud Expo®, which will take place on June 9-11, 2015, at the Javits Center in New York City, NY. Gridstore™ is the leader in hyper-converged infrastructure purpose-built for Microsoft workloads and designed to accelerate applications in virtualized environments. Gridstore’s hyper-converged infrastructure is the industry’s first all flash version of HyperConverged Appliances that include both compute and storag...
Dec. 17, 2014 06:30 PM EST Reads: 1,108
"People are a lot more knowledgeable about APIs now. There are two types of people who work with APIs - IT people who want to use APIs for something internal and the product managers who want to do something outside APIs for people to connect to them," explained Roberto Medrano, Executive Vice President at SOA Software, in this SYS-CON.tv interview at Cloud Expo, held Nov 4–6, 2014, at the Santa Clara Convention Center in Santa Clara, CA.
Dec. 17, 2014 06:00 PM EST Reads: 1,077
Today’s enterprise is being driven by disruptive competitive and human capital requirements to provide enterprise application access through not only desktops, but also mobile devices. To retrofit existing programs across all these devices using traditional programming methods is very costly and time consuming – often prohibitively so. In his session at @ThingsExpo, Jesse Shiah, CEO, President, and Co-Founder of AgilePoint Inc., discussed how you can create applications that run on all mobile devices as well as laptops and desktops using a visual drag-and-drop application – and eForms-buildi...
Dec. 17, 2014 11:45 AM EST Reads: 1,371
We certainly live in interesting technological times. And no more interesting than the current competing IoT standards for connectivity. Various standards bodies, approaches, and ecosystems are vying for mindshare and positioning for a competitive edge. It is clear that when the dust settles, we will have new protocols, evolved protocols, that will change the way we interact with devices and infrastructure. We will also have evolved web protocols, like HTTP/2, that will be changing the very core of our infrastructures. At the same time, we have old approaches made new again like micro-services...
Dec. 16, 2014 11:45 PM EST Reads: 1,196
Code Halos - aka "digital fingerprints" - are the key organizing principle to understand a) how dumb things become smart and b) how to monetize this dynamic. In his session at @ThingsExpo, Robert Brown, AVP, Center for the Future of Work at Cognizant Technology Solutions, outlined research, analysis and recommendations from his recently published book on this phenomena on the way leading edge organizations like GE and Disney are unlocking the Internet of Things opportunity and what steps your organization should be taking to position itself for the next platform of digital competition.
Dec. 15, 2014 11:45 PM EST Reads: 1,586
The 3rd International Internet of @ThingsExpo, co-located with the 16th International Cloud Expo - to be held June 9-11, 2015, at the Javits Center in New York City, NY - announces that its Call for Papers is now open. The Internet of Things (IoT) is the biggest idea since the creation of the Worldwide Web more than 20 years ago.
Dec. 15, 2014 10:30 AM EST Reads: 6,837
As the Internet of Things unfolds, mobile and wearable devices are blurring the line between physical and digital, integrating ever more closely with our interests, our routines, our daily lives. Contextual computing and smart, sensor-equipped spaces bring the potential to walk through a world that recognizes us and responds accordingly. We become continuous transmitters and receivers of data. In his session at @ThingsExpo, Andrew Bolwell, Director of Innovation for HP's Printing and Personal Systems Group, discussed how key attributes of mobile technology – touch input, sensors, social, and ...
Dec. 15, 2014 10:00 AM EST Reads: 1,927
In their session at @ThingsExpo, Shyam Varan Nath, Principal Architect at GE, and Ibrahim Gokcen, who leads GE's advanced IoT analytics, focused on the Internet of Things / Industrial Internet and how to make it operational for business end-users. Learn about the challenges posed by machine and sensor data and how to marry it with enterprise data. They also discussed the tips and tricks to provide the Industrial Internet as an end-user consumable service using Big Data Analytics and Industrial Cloud.
Dec. 15, 2014 10:00 AM EST Reads: 1,585
Building low-cost wearable devices can enhance the quality of our lives. In his session at Internet of @ThingsExpo, Sai Yamanoor, Embedded Software Engineer at Altschool, provided an example of putting together a small keychain within a $50 budget that educates the user about the air quality in their surroundings. He also provided examples such as building a wearable device that provides transit or recreational information. He then reviewed the resources available to build wearable devices at home including open source hardware, the raw materials required and the options available to power s...
Dec. 15, 2014 09:00 AM EST Reads: 1,589
Things are being built upon cloud foundations to transform organizations. This CEO Power Panel at 15th Cloud Expo, moderated by Roger Strukhoff, Cloud Expo and @ThingsExpo conference chair, addressed the big issues involving these technologies and, more important, the results they will achieve. Rodney Rogers, chairman and CEO of Virtustream; Brendan O'Brien, co-founder of Aria Systems, Bart Copeland, president and CEO of ActiveState Software; Jim Cowie, chief scientist at Dyn; Dave Wagstaff, VP and chief architect at BSQUARE Corporation; Seth Proctor, CTO of NuoDB, Inc.; and Andris Gailitis, C...
Dec. 15, 2014 09:00 AM EST Reads: 1,410
There's Big Data, then there's really Big Data from the Internet of Things. IoT is evolving to include many data possibilities like new types of event, log and network data. The volumes are enormous, generating tens of billions of logs per day, which raise data challenges. Early IoT deployments are relying heavily on both the cloud and managed service providers to navigate these challenges. In her session at Big Data Expo®, Hannah Smalltree, Director at Treasure Data, discussed how IoT, Big Data and deployments are processing massive data volumes from wearables, utilities and other machines...
Dec. 15, 2014 08:45 AM EST Reads: 1,998
"There is a natural synchronization between the business models, the IoT is there to support ,” explained Brendan O'Brien, Co-founder and Chief Architect of Aria Systems, in this SYS-CON.tv interview at the 15th International Cloud Expo®, held Nov 4–6, 2014, at the Santa Clara Convention Center in Santa Clara, CA.
Dec. 15, 2014 08:15 AM EST Reads: 2,686
SYS-CON Media announced that Splunk, a provider of the leading software platform for real-time Operational Intelligence, has launched an ad campaign on Big Data Journal. Splunk software and cloud services enable organizations to search, monitor, analyze and visualize machine-generated big data coming from websites, applications, servers, networks, sensors and mobile devices. The ads focus on delivering ROI - how improved uptime delivered $6M in annual ROI, improving customer operations by mining large volumes of unstructured data, and how data tracking delivers uptime when it matters most.
Dec. 15, 2014 06:45 AM EST Reads: 2,137
In this Women in Technology Power Panel at 15th Cloud Expo, moderated by Anne Plese, Senior Consultant, Cloud Product Marketing at Verizon Enterprise, Esmeralda Swartz, CMO at MetraTech; Evelyn de Souza, Data Privacy and Compliance Strategy Leader at Cisco Systems; Seema Jethani, Director of Product Management at Basho Technologies; Victoria Livschitz, CEO of Qubell Inc.; Anne Hungate, Senior Director of Software Quality at DIRECTV, discussed what path they took to find their spot within the technology industry and how do they see opportunities for other women in their area of expertise.
Dec. 15, 2014 04:00 AM EST Reads: 1,374
While great strides have been made relative to the video aspects of remote collaboration, audio technology has basically stagnated. Typically all audio is mixed to a single monaural stream and emanates from a single point, such as a speakerphone or a speaker associated with a video monitor. This leads to confusion and lack of understanding among participants especially regarding who is actually speaking. Spatial teleconferencing introduces the concept of acoustic spatial separation between conference participants in three dimensional space. This has been shown to significantly improve comprehe...
Dec. 12, 2014 05:00 PM EST Reads: 1,241
The Industrial Internet revolution is now underway, enabled by connected machines and billions of devices that communicate and collaborate. The massive amounts of Big Data requiring real-time analysis is flooding legacy IT systems and giving way to cloud environments that can handle the unpredictable workloads. Yet many barriers remain until we can fully realize the opportunities and benefits from the convergence of machines and devices with Big Data and the cloud, including interoperability, data security and privacy.
Dec. 11, 2014 06:00 PM EST Reads: 1,445
Performance is the intersection of power, agility, control, and choice. If you value performance, and more specifically consistent performance, you need to look beyond simple virtualized compute. Many factors need to be considered to create a truly performant environment. In his General Session at 15th Cloud Expo, Harold Hannon, Sr. Software Architect at SoftLayer, discussed how to take advantage of a multitude of compute options and platform features to make cloud the cornerstone of your online presence.
Dec. 11, 2014 03:15 PM EST Reads: 1,912