It's not a secret anymore!*
The moose likes Servlets and the fly likes Web Server and App Server!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Web Server and App Server!!!" Watch "Web Server and App Server!!!" New topic
Author

Web Server and App Server!!!

Brian Smith
Ranch Hand

Joined: Oct 26, 2002
Posts: 232
hi folks,
could you please me describe the definition and differences between Web Server and Application Server?
thanks.
Claudio Gualberto
Ranch Hand

Joined: Oct 13, 2002
Posts: 47
When we are talking about Java Servlets, Web Server is the Servlet/JSP Container, just like Tomcat , Jetty and so on.
Application Server generally is both Servlet/JSP and EJB Container, just like BEA Weblogic, IBM Websphere, and so on.
There is no phisical separation from Web server and EJB Server on the mostly used servers. Some like JBoss, comes with Web Container embebeded, others no, but you must not to worry about it.
In summary, Tomcat can hold only JSP/Servlet, so it is a Web Server ( Web Container ) , Bea Weblogic can hold both JSP/Servlet and EJB, so it is a Web/Ejb Container or an Application Server.
Claudio Gualberto
SCJP 1.4
Scott Duncan
Ranch Hand

Joined: Nov 01, 2002
Posts: 363
To be a bit more general, a web server handles HTTP requests and does not mean that it runs JSPs and Servlets. Take Apache, IIS, Netscape, etc.
Jakarta Tomcat is an open-source application server that is produced by the Apache Software Foundation. Tomcat is the reference implementation for the Java Servlet and Java Server Pages technologies. For more information, see http://jakarta.apache.org/tomcat.


No more rhymes! I mean it!<br /> <br />Does anybody want a peanut?
Kaustubh Patil
Ranch Hand

Joined: Aug 13, 2001
Posts: 164
Hi Sathi,
There is a major thing that seperates web servers from application servers.
Web servers "static" content and app servers serve "dynamic" content (ofcourse they can serve static content also).
By static content I mean is that the server doesn't have to generate the output depending upon the request. just like simple HTML pages.
By dynamic content I mean is that the server is capable of generating dynamic content. i.e. depending on the request it can generate the output. This is basically servlets/jsp.
-Kaustubh.


Kaustubh. Mumbai, India.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Web Server and App Server!!!