Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why choose tomcat over a java EE compliant application server?

Java EE application servers provide all the features of tomcat, so why use tomcat (instead of glassfish for example as it is the official one)?

Especially when Java EE features are needed like JPA, JAX-RS, JSF, and therefore more libraries have to be packaged with the application, while a EE-compliant application server would have provided it out of the box?

like image 599
kgautron Avatar asked Jun 29 '12 13:06

kgautron


People also ask

Is Tomcat Java EE compliant?

The solution was clear, Tomcat needed to be Java EE certified. The Web Profile was created to allow for exactly that. In 2011 we (Apache) started doing the work to certify Apache Tomcat. Certification reached and announced at JavaOne 2011 as Apache TomEE.

Why do we need Tomcat server?

Apache Tomcat server: Apache Tomcat is a web container. It allows the users to run Servlet and JAVA Server Pages that are based on the web-applications. It can be used as the HTTP server. The performance of the Tomcat server is not as good as the designated web server.

What is the difference between Java and Tomcat?

Tomcat users will need to deploy a JDK and properly configure the JAVA_HOME variable to run. Both Java application servers are open source and are served by the ASF, but only Tomcat requires the additional resources and requirements that enterprises will need to manage.

What is the advantage of Apache Tomcat?

Web app deployment made easy Apache Tomcat is Open-sourced, and it's free to use. Multiple applications can run at the same time without any issues. Apache Tomcat Has excellent built-in security features and provided a rich API sets.


1 Answers

The question that was in our mind and the entire reason we created TomEE was, why should people have to choose?

The whole "Tomcat or JavaEE" thing is tired and old.

After 10 years it still comes up and people argue against each other as to which is better and why.

Here's the math in short form:

  • In Java EE 6, we (JCP) created the Web Profile to formally acknowledge the need for smaller runtimes with a focused set of technologies.

Great, we're half-way there, but people are still arguing "Tomcat or JavaEE". The solution was clear, Tomcat needed to be Java EE certified. The Web Profile was created to allow for exactly that.

  • In 2011 we (Apache) started doing the work to certify Apache Tomcat. Certification reached and announced at JavaOne 2011 as Apache TomEE. Final release announced in April.

Awesome, now we are there.

The new Status Quo

  • There is a lighter version of JavaEE
  • There is a JavaEE certified version of Tomcat

All this happened in the last 2 years. Things have changed.

If you want Tomcat and JavaEE, you can have it.

like image 139
David Blevins Avatar answered Sep 28 '22 03:09

David Blevins