Tomcat is web server or application server?

TomcatWebserverApplication ServerServlet Container

Tomcat Problem Overview


Is Tomcat a web server or an application server?

Tomcat Solutions


Solution 1 - Tomcat

Tomcat is a web server (can handle HTTP requests/responses) and web container (implements Java Servlet API, also called servletcontainer) in one. Some may call it an application server, but it is definitely not an fullfledged Java EE application server (it does not implement the whole Java EE API).

See also:

Solution 2 - Tomcat

Tomcat is an application container that is also a web server. An application container can run web-applications (have "application" scope). It is not considered Some people do not consider it a full application server as it is lacking in some aspects such as user management and the like, but getting better all the time..

Solution 3 - Tomcat

Tomcat is a web server and a Servlet/JavaServer Pages container. It is often used as an application server for strictly web-based applications but does not include the entire suite of capabilities that a Java EE application server would supply.

Links:

Solution 4 - Tomcat

> Apache Tomcat is an open source > software implementation of the Java > Servlet and JavaServer Pages > technologies.

Since Tomcat does not implement the full Java EE specification for an application server, it can be considered as a web server.

Source: http://tomcat.apache.org

Solution 5 - Tomcat

Application Server:

Application server maintains the application logic and
serves the web pages in response to user request.

That means application server can do both application logic maintanence and web page serving.

Web Server:

Web server just serves the web pages and it cannot enforce any application logic.

Final conclusion is: Application server also contains the web server.

For further Reference : http://www.javaworld.com/javaqa/2002-08/01-qa-0823-appvswebserver.html

Solution 6 - Tomcat

It runs Java compiled code, it can maintain database connection pools, it can log errors of various types. I'd call it an application server, in fact I do. In our environment we have Apache as the webserver fronting a number of different application servers, including Tomcat and Coldfusion, and others.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionSuresh SView Question on Stackoverflow
Solution 1 - TomcatBalusCView Answer on Stackoverflow
Solution 2 - TomcatNir LevyView Answer on Stackoverflow
Solution 3 - TomcatJUST MY correct OPINIONView Answer on Stackoverflow
Solution 4 - TomcatYuval AdamView Answer on Stackoverflow
Solution 5 - Tomcati2ijeyaView Answer on Stackoverflow
Solution 6 - TomcatJayView Answer on Stackoverflow