tags:

views:

297

answers:

6

guys let me know

A: 

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

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

Source: http://tomcat.apache.org

Yuval A
+2  A: 

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.

Jay
+4  A: 

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

Nir Levy
@Nir it seems contradictory if tomcat can do 100% what web server does, then it should fall under a part application server
Suresh S
You cannot deploy EAR files to Tomcat. That makes it a non-application server.
Thorbjørn Ravn Andersen
@Andersen - but you can deply war.
Suresh S
@Andersen - can u deploy war file in apache http web server (which i think so?)
Suresh S
Who states that you need to be able to deploy an EAR for something to qualify as an "application server"?
matt b
@Suresh - if you mean httpd, then no you can't deploy WAR files to it.
JUST MY correct OPINION
Nir Levy
@Suresh also please understand that Tomcat server and Apache server are two different things. As Tomcat is part of the Apache Foundation it is something called "Apache Tomcat" which is confusing. http://en.wikipedia.org/wiki/Apache_Tomcat vs. http://en.wikipedia.org/wiki/Apache_HTTP_Server
Nir Levy
+4  A: 

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:

JUST MY correct OPINION
+1  A: 

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

BalusC
It is not "technically incorrect".Tomcat and Jetty are application servers. Specifically they are web application servers. They are not Java EE (or J2EE) application servers, but they are application servers in the generic sense of the term.
JUST MY correct OPINION
Makes sense from that point of view. But I'd generally avoid this term for starters. Tomcat is a webcontainer (also called servletcontainer) and that's generally clear enough.
BalusC
Wait for Java EE 6 profiles and they will officially be JEE application server :)
ewernli
Wait? Glassfish is already Java EE 6 compliant.
JUST MY correct OPINION
A: 

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

i2ijeya