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!
| 1 |
Adoption levels |
high |
? |
? |
good |
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. |
6.0.24 |
? |
? |
yes |
TC 6 is not STABLE yet |
| 2 |
Apache httpd integration through module |
yes |
yes |
? |
yes |
ajp hack no longer needed in v3 |
| 3 |
Includes Java EE 5 Container |
no |
yes |
? |
yes |
Weblogic is available with EE 5 (WLS) and without (WLX), only different license files |
| 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 |
| 1 |
Support for virtual hosting |
yes |
? |
? |
yes |
|
| 1 |
Deploy same webapp to multiple hosts |
yes |
? |
? |
yes |
|
| 1 |
Configure same webapp differently |
yes |
? |
? |
yes |
Possible in Tomcat's context.xml or server.xml |
| 2 |
Per virtual host logging |
ok |
? |
? |
yes |
Tomcat's JULI is a bit buggy , |
| 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 |
| 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> |
References
http://issues.apache.org/bugzilla/show_bug.cgi?id=39627
http://www.nabble.com/readConfiguration%28%29-broken-in-juli-t1755780.html
http://www.nabble.com/forum/ViewPost.jtp?post=7107700&framed=y
http://www.nabble.com/forum/ViewPost.jtp?post=7118636&framed=y
This page (revision-12) was last changed on
04-Feb-10 09:44 AM, -0800
by Scott Melton.
This page was created on
16-Dec-06 07:40 AM, -0800 by EduardoPelegriLlopart.
Back to GlassFishVsTomcat
| Version |
Date |
Author |
Size |
Changes ... |
|
12
|
04-Feb-10 09:44 AM, -0800
|
Scott Melton |
9251 |
to previous
|
|
11
|
04-Feb-10 09:43 AM, -0800
|
Scott Melton |
9250 |
to previous
|
to last
|
|
10
|
06-Nov-08 11:22 AM, -0800
|
70.34.210.68 |
9252 |
to previous
|
to last
|
|
9
|
31-Jan-08 11:55 AM, -0800
|
JohnClingan |
9244 |
to previous
|
to last
|
|
8
|
03-Jun-07 15:16 PM, -0700
|
87.123.102.189 |
9243 |
to previous
|
to last
|
|
7
|
03-Jun-07 15:15 PM, -0700
|
87.123.102.189 |
9177 |
to previous
|
to last
|
|
6
|
03-Jun-07 15:12 PM, -0700
|
87.123.102.189 |
8828 |
to previous
|
to last
|
|
5
|
03-Jun-07 15:09 PM, -0700
|
87.123.102.189 |
8774 |
to previous
|
to last
|
|
4
|
07-Mar-07 13:06 PM, -0800
|
70.34.210.68 |
8760 |
to previous
|
to last
|
|
3
|
21-Feb-07 15:14 PM, -0800
|
70.34.210.68 |
8758 |
to previous
|
to last
|
|
2
|
21-Feb-07 13:16 PM, -0800
|
70.34.210.68 |
8760 |
to previous
|
to last
|
|
1
|
16-Dec-06 07:40 AM, -0800
|
EduardoPelegriLlopart |
8758 |
to last
|