Web

Difference between Glassfish and Tomcat

Main Difference

Tomcat is merely an HTTP server and Java servlet container. Glassfish is full-blown Java EE application servers, including an EJB container and all the other features of that stack. Tomcat has a lighter memory footprint (~60-70 MB), while those Java EE servers weigh in at hundreds of megs. Tomcat is very popular for simple web applications, or applications using frameworks such as Spring that do not require a full Java EE server. Comparatively the administration of Tomcat server is more easier than administration of Glassfish as there are fewer moving parts in Tomcat.

Glassfish

glassfishGlassfish is full-blown Java EE application servers, including an EJB container and all the other features of that stack. It comes from the Oracle and thus each and every new spec will be tested and implemented with Glassfish first.

Tomcat

tomcatTomcat is merely an HTTP server and Java servlet container. It is run by Apache community. Tomcat is open source and free. It supports all Java EE technologies. It is not supported by any commercial support but only supported by community.

Key Differences

  • Tomcat is merely an HTTP server and Java servlet container. Glassfish is full-blown Java EE application servers, including an EJB container and all the other features of that stack.
  • Tomcat has a lighter memory footprint as compare to Glassfish.
  • Tomcat has footprint memory of 60-70 MB, while those Java EE servers weigh in at hundreds of Megs.
  • Tomcat is very popular for simple web applications as compare to Glassfish.
  • Comparatively the administration of Tomcat server is more easier than administration of Glassfish as there are fewer moving parts in Tomcat.
  • Both of the Tomcat and Glassfish are open source and free but have different licenses.
  • Glassfish is dual licensed while Tomcat has single license.
  • Tomcat uses the Apache License while Glassfish has been licensed under CDDL and GPL.

Video Explanation

https://www.youtube.com/watch?v=Y93sKaSbW90

1 Comment

Leave a Comment