Cloud Zone is brought to you in partnership with:

Eric is the Editorial Manager at DZone, Inc. Feel free to contact him at egenesky@dzone.com Eric has posted 804 posts at DZone. You can read more from them at their website. View Full User Profile

Apache TomEE: A Tomcat for the Cloud

04.30.2012
| 15481 views |
  • submit to reddit

Today Apache announced the release of Apache TomEE v1.0, which adds Java EE features and is ideally suited for the cloud.  Tomcat is a popular servlet and lightweight application among much of the Java community, so TomEE should come as welcome news to those who are looking for a cloud solution that retains Tomcat.  

This iteration of Tomcat is actually a combination of Apache projects, including OpenEJB, OpenWebBeans, OpenJPA, and MyFaces.  Apache's press release claims that TomEE is dedicated to "enhancing production quality," and thus far has found improvements on large applications.  More specifically, the stats are showing an increase in startup times by 100-300%:

  •  Railo 3.3 Custom (44mb WAR): 21.3% of beta2 startup time (369% faster)
  •  Lift/Scala sample app (23mb WAR): 43.8% of beta2 startup time (128% faster)
  •  Confluence 3.5.5 (149mb unpacked): 37.6% of beta2 startup time (166% faster)


O'Reiley Media's Tim O'Brien recently interviews the founder of TomEE to discuss the development and applicability of TomEE, specifically as it relates to Java developers:



You can get a hold of the source code, documentation, mailing lists and other useful resources by checking out the TomEE web page linked below.

Apache TomEE Official Site

Published at DZone with permission of its author, Eric Genesky.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)

Comments

Jonathan Fisher replied on Mon, 2012/04/30 - 11:48am

JEE without the bloat of an appserver... fully starts in seconds, not minutes... can use about a 1/3 of the memory of already lightweight GlassFish... already using in production, fully compatible wherever Tomcat is supported!

Mike P(Okidoky) replied on Mon, 2012/04/30 - 1:16pm

I need:
- Hibernate
- Remote stateless session bean calling
- JMS with durable subscriptions
- JSP
- Web-services through JAW-WS servlet
- mbeans (sar modules)

How would I go about porting a JBoss 4 setup with the above, to TomEE ?

Adrian Mitev replied on Mon, 2012/04/30 - 1:19pm in response to: Mike P(Okidoky)

TomEE only supports the Web Profile of JEE6, hence no remote EJBs.

Andras Hatvani replied on Mon, 2012/04/30 - 3:42pm

Tomcat isn't a lightweight application server, but just a servlet container.

David Blevins replied on Mon, 2012/04/30 - 4:26pm in response to: Mike P(Okidoky)

TomEE+ has all the above minus support for JBoss-specific sar modules.  Rather I should say, ActiveMQ, CXF and OpenEJB provide support for JMS with durable subscriptions, JAX-WS and remote EJBs.  JSP support is provided by Tomcat.  Hibernate can be added as a JPA Provider in the persistence.xml and includng the jars in tomcat/lib/.  If using it as the pre-JPA Hibernate, it can likely just be right in the webapp.

Not sure how you'd handle the sar module concept as I'm not that familiar with it.  There is some support for scanning applications for @MBean annotations.  That's not a standard concept either, so not sure how it lines up with sar modules.  If the idea is to register application components with JMX, then there's definitely overlap. 

Mitch Pronschinske replied on Mon, 2012/04/30 - 4:26pm in response to: Andras Hatvani

It can be an app server for some applications: http://www.tomcatexpert.com/blog/2010/06/09/tomcat-application-server

Jonathan Fisher replied on Mon, 2012/04/30 - 8:09pm in response to: Andras Hatvani

@Andras Hatvani and everyone else saying Tomcat isn't an application server... you need to read the article! TomEE _is_ a lightweight application server. It DOES support EJBs, JPA, JMS, etc. Thats the whole point! 

Andras Hatvani replied on Tue, 2012/05/01 - 11:03am in response to: Jonathan Fisher

Tomcat != TomEE

Ron Sim replied on Wed, 2013/02/13 - 5:40am

 
This is really a nice and informative, containing all information and also has a great impact on the new technology. Thanks for sharing it ..   Good Relationship With Ninkiya

Gurkan Erdogdu replied on Thu, 2013/10/10 - 7:42am

There is also a book about TomEE. Here is the book details and review : http://books.dzone.com/announcements/apache-tomee-cookbook-out

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.