Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tomcat is web server or application server? [closed]

Is Tomcat a web server or an application server?

like image 406
Suresh S Avatar asked Mar 18 '10 13:03

Suresh S


People also ask

Is Tomcat a web application?

The Tomcat Manager is a web application that can be used interactively (via HTML GUI) or programmatically (via URL-based API) to deploy and manage web applications.

Does Tomcat have web server?

Apache Tomcat (called "Tomcat" for short) is a free and open-source implementation of the Jakarta Servlet, Jakarta Expression Language, and WebSocket technologies. It provides a "pure Java" HTTP web server environment in which Java code can also run.

Is webserver and application server same?

The main difference between Web server and application server is that web server is meant to serve static pages e.g. HTML and CSS, while Application Server is responsible for generating dynamic content by executing server side code e.g. JSP, Servlet or EJB.

What does Tomcat application server do?

Tomcat is normally defined as a reference implementation of the Java Servlet and the Java Server Page (JSP) Specifications. It basically executes Java servlets and renders web pages which include JSP coding. It is available on the Apache site in both source and binary versions.


2 Answers

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:

  • What exactly is Java EE?
  • How do servlets work? Instantiation, sessions, shared variables and multithreading
like image 64
BalusC Avatar answered Sep 29 '22 01:09

BalusC


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..

like image 27
Nir Levy Avatar answered Sep 29 '22 01:09

Nir Levy