Java J2EE Portal
Enterprise Java Station
J2EE curve
Java News / Articles
Java News / Articles
Introduction to Rich Internet Applications (RIAs) and Adobe Flex
Free & Open Software Notes From CommunityOne
JavaOne 2007 Update
Processing...
Buy Java, Deals On Software Technology Store
Click here for great deals on computers, laptops, software and books
Apache Tomcat Server Alternatives - Jetty and Resin PDF Print
Written by Content Team   
Jul 14, 2006 at 04:13 AM

ApacheTomcatAlternativesJettyResinIf your enterprise Java development is light weight and strictly avoids EJBs, you would probably consider Apache Tomcat as your first choice application server. However not only has Tomcat become rather heavy over time but it also isn't the only option you have.

The list of Java servers is quite long, but it normally comes down to Tomcat, Jetty and Resin. Apache Tomcat is easily the most popular of the three and the "Powered By Tomcat" section lists some of the more well known names running Tomcat.

Jetty has been around since 1998 and claims to be a "100% Java HTTP Server and Servlet Container". Its features are 1) Open Source - Apache 2.0 License 2) Small and Efficient 3) Production proven 4) Embeddable

A recent article titled "What is Jetty" says that "Jetty's real claim to fame is that it is designed be embedded in other Java code. That is, the development team exposes Jetty as a set of JAR files such that you can instantiate and manipulate a servlet container in your own code, as an object. This opens up new possibilities for servlets and web apps."

Resin is available in two versions, Professional and Open Source. Professional has features commonly needed in a production environment while the Open Source version is said to be suitable for hobbyists and low traffic websites.

In a recent comparison Jetty vs. Tomcat vs. Resin, while Tomcat and Jetty were quite evenly matched, Resin seemed to lag behind. So if it's between Jetty and Tomcat, how do you decide?

If it's the community support, documentation and widespread acceptance, Tomcat is the better choice. If it's speed and light weight, Jetty supporters are convinced that Jetty is better but there are no actual figures to back this up.

The embeddable nature of Jetty is the most common reason why Jetty is recommended. This is also perhaps the reason why Jetty integrations with Geronimo, JBoss and JOnAS are available. However Tomcat can also be embedded using the Embedded class, a convenience class to embed a Catalina servlet container environment inside another application.

Download for Servlets 2.4 and JSP 2.0

* Jetty-5.1
* Apache Tomcat Core Download

Related:
>> Enterprise Ready Server 3.0 (Apache + Tomcat) released
>> WebLogic blends with Tomcat
>> Java's failure at shared hosting will contribute to its downfall
>> JBoss is light years ahead of other open source application


User Comments

Comment by 'Guest' on 2006-07-27 11:23:30
So which should I use 
 
Tomcat or Jetty or Resin or Geronimo or... 
So may choices no time to evaluate

Comment by 'Guest' on 2006-07-17 08:03:41
If I am not wrong, repeated comments about Apache Tomcat's growing weight has led to the server shedding some weight in the recent past. The core download is 6.5 MB which is good.

Comment by 'Guest' on 2007-03-07 22:01:08
After Caucho support Resin two kind of product, Open source and Professional , Open source version of Resin isn't so fast as Tomcat. 
But performance of Professional version of Resin is worth to pay for it. 
Even in a Open Source version, Resin uses smaller memory and cpu usage than Tomcat. 
Do some stress test with simple jsp application.

Comment by GUEST on 2007-08-27 11:24:21
The biggest issue I have with Tomcat isn't related to performance but simple stability. Redeploy a Wicket app a few times, and Tomcat's classloaders can't find resources any more.

Comment by Anonymous on 2008-08-12 06:51:16
Your Name / Email Address
Comment
Spam Protection - Please enter the code in the image -

Listen to code


Add This Feed Button

Enter your Email


Java Expert Interviews
TonyMorrisJTiger
Why pick JTiger Java Unit Testing Framework over good old JUnit?
GraemeRocher-Grails
Grails is a breath of fresh air for Java developers
JavaFX Expert
JavaFX Is Many Times Faster And Easier Than Swing
Processing...
Go to top of page  Home |
SiteMap

Copyright 2004 to 2008 Rightrix Solutions. All rights reserved. All product names are trademarks of their respective companies. Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries. Rightrix Solutions and IndicThreads.com are independent of Sun Microsystems, Inc.

Views expressed at IndicThreads.com reflect the views of the authors alone, and do not necessarily reflect those of IndicThreads.com. IndicThreads.com and it's authors are not responsible for reader comments and opinions.

Enterprise Java J2EE JEE Portal >> IndicThreads.com