Home Index Changes Prefs Log in »
This is version 3. It is not the current version, and thus it cannot be edited.
[Back to current version]   [Restore this version]

GlassFish and Tomcat Comparison

Below is a table, originally created by Roger Keays (you can see the original blog post here), comparing the feature sets of Glassfish and Tomcat. See a missing or inaccurate entry? It's a wiki, so jump in and help us keep this up-to-date and accurate!

Pri Standard features Tomcat WebLogic 9 Websphere Glassfish Comment
1 Adoption levels high ? ? low Glassfish is new
2 Scalable ok ? ? yes Glassfish has grizzly
2 Latest Web Tier JCP Specs. JSF 1.2, JSP 2.1, JSTL 1.2. not yet ? ? yes TC 6 is not STABLE yet
3 Includes Java EE 5 Container no ? ? yes  
3 Dependency injection no ? ? yes  
3 Container managed transactions no ? ? yes  
3 OpenJPA entities enhanced automatically no ? ? yes  
4 JDBC authentication yes ? ? yes In Glassfish v1 ur1
  Virtual server features          
1 Support for virtual hosting yes ? ? yes  
1 Deploy same webapp to multiple hosts yes ? ? yes  
1 Configure same webapp differently yes ? ? no Possible in Tomcat's context.xml or server.xml
2 Per virtual host logging ok ? ? yes Tomcat's JULI is a bit buggy [1], [2]
2 Each host has their own authentication realm yes ? ? yes  
3 Each host has their own deployment dir yes ? ? no  
4 Each host has a jailed manager yes ? ? no  
4 Support for alternate docroots no ? ? yes  
4 Each host can listen on a different port ok ? ? yes Tomcat requires an additional <Service> containers [3]
5 Each host can listen on an arbitrary combination of ports no ? ? yes For Tomcat, a host in one <Service> cannot share ports with a host in another <Service> [4]

References

[1] http://issues.apache.org/bugzilla/show_bug.cgi?id=39627
[2] http://www.nabble.com/readConfiguration%28%29-broken-in-juli-t1755780.html
[3] http://www.nabble.com/forum/ViewPost.jtp?post=7107700&framed=y
[4] http://www.nabble.com/forum/ViewPost.jtp?post=7118636&framed=y

« Home Attachments Info Index Changes Prefs
This particular version was published on 21-Feb-07 15:14 PM, -0800 by 70.34.210.68