April 21, 2009

Java in the cloud: Google, Aptana, and Stax

Google App Engine, Aptana Cloud, and Stax for EC2 make it easy to spin up and scale a simple Java Servlet Container, but are still a far cry from the full Java EE

Just as the megastars in Hollywood seem to find each other and fall in love, it was only inevitable that two of the greatest buzzwords ever hatched -- "Java" and "cloud" -- would meet and begin to breed. Now that a number of companies have launched Java clouds, or begun weaving Java into their hosted development platforms, the race is on to remake the Java infrastructure in the cloud image.

There is some irony in this turn of events because the Java infrastructure has done better than most piles of code in solving the difficult problem of getting multiple processors and multiple machines working together. Java EE (Enterprise Edition) offers a very sophisticated set of mechanisms that pass messages between machines (Java Message Service or javax.jms.*) and handle database access (Java Persistence and Java Transaction). Then there's the Enterprise Java Bean, a sophisticated tool for managing persistence on a cluster, an abstraction that's so powerful and so dangerous that it has driven as many programmers mad as it has helped.

[ Is the mainframe the ultimate cloud platform? What should you do if your cloud provider disappears? What does cloud computing really mean? ]

A number of companies have repackaged the JVM (Java Virtual Machine) and turned it into a hosted service. To see how this is working out, I set up accounts at three different providers offering Java services on their cloud, built a few test applications, and bombed them with some HTTP requests.

All of them are very new. Google's App Engine just expanded to include Java and is now giving select programmers an "early look." Stax is in beta. Aptana's Cloud doesn't use either term but is adding new features. Surprisingly, Sun was not ready to let me test anything in its cloud but is expected to launch in a few months. (See the sidebar, "Sun Cloud looks beyond Java," for a description of what Sun is planning.)

The most surprising element about all of these new clouds is how little they offer compared to the promise of the Java EE stack. At the core, they provide a simple servlet container, one that's stripped down and not much different from Tomcat because it is often just Tomcat. The tools do a better job of delivering a revolutionary way of purchasing computer time than they do of creating the next generation of Java flexibility.

 

 

Java clouds at a glance

 

 

Pros

Cons

Bottom line

Google App Engine

  • Automatically scales up and down without asking permission
  • Free trial layer for small applications
  • A big set of tools integrated with Eclipse and GWT
  • You must store data in the way Google wants you to store data
  • Some class files are absent
  • Every step is bound by strict quotas

Great for lightweight shells that wrap Java code around big tables

Aptana Cloud

  • Deep integration with Aptana's nice set of Eclipse plug-ins
  • All of the familiar buttons are available including root
  • All of the familiar databases are waiting for you on their regular ports
  • Pricing options are narrow (you get only four choices)
  • No clusters yet

All of your server controls are now available from Eclipse

Stax for EC2

  • Web-based tool lets you choose your development platform
  • A wide range of clustering options available
  • A good collection of startup frameworks
  • All of Amazon's service offerings are in the same datacenter
  • You need to manually switch to bigger clusters when the hordes arrive
  • Limited access to resources under the hood

A simple Web-based tool makes it easy to whip up a Tomcat server

 

Close

On Twitter now

Development platforms

Powered by Twitter
additional resources
White Paper - How to Improve Delivery of Advanced Web Applications

White Paper

Virtual Workforce: The Key to Expanding The Business While Cutting Costs

Get the independent advice and expertise you need to support a virtual workforce.

Go inside:
The three-step approach to making a virtual workforce a reality.
The four flavors of client virtualization technologies.
The three key initiatives that solve IT challenges.
Download now »
White Paper: Successfully Secure Your Wireless LAN With Wi-Fi firewalls.

White Paper

Addressing Linux Threats Leveraging Fewer Resources

The increase in Linux popularity has increased the frequency and sophistication of malware attacks. Read this 2 page white paper now to learn how you can protect your Linux environment with real-time protection that is certified by all major Linux vendors.

Download now »
White Paper - The 2009 Handbook of Application Delivery

White Paper

The 2009 Handbook of Application Delivery

Ensuring acceptable application delivery will become even more difficult over the next few years. As a result, IT organizations need to ensure that the approach that they take to resolving the current application delivery challenges can scale to support the emerging challenges. This handbook elaborates on the key tasks associated with planning, optimization, management and control and provides decision criteria to help IT organizations choose appropriate solutions.

Download now »
White Paper - Is Your Backup System Outdated?

White Paper

Mid-range Storage Considerations

A common misconception is that mid-range storage requirements are dramatically different than that of a larger enterprise. Mid-range storage users may require less capacity, but they have similar functionality and management requirements. This ESG paper examines mid-range storage needs and reviews a new solution that adjusts size while retaining value, performance and functionality.

Download now »

Sign up to receive InfoWorld Resource Alerts

Subscribe to the Cloud Computing Report Newsletter

Receive the latest cloud computing news and find out how to deliver it more effectively.

White paper

19 Things to Consider When Selecting an Exchange Provider

The list of vendors offering “hosted Microsoft Exchange” is practically endless, and seems to grow longer every day. This whitepaper provides information to help you identify the issues that are most important to you and offers a guide to help you narrow the field.

Download now! »

White paper

Hosted Services: Providing SMBs with Access to Advanced Technology

This paper examines the potential value of hosted infrastructure and applications for SMBs and discusses the role that Apptix has in providing hosted services to this market segment.

Download now! »

White paper

Combating "Hostaphobia"

Hosted services enable companies of all sizes to outsource their IT needs and spend less time worrying about technology–while avoiding having physical servers in their offices. This paper was designed to provide education into the causes of hostaphobia, as well as detailed options for treatment.

Download now! »
©1994-2010 Infoworld, Inc.