File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes webservers VS application servers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "webservers VS application servers" Watch "webservers VS application servers" New topic

webservers VS application servers

Dipti Mishra

Joined: Jan 24, 2006
Posts: 22
hi folks,

i am very much confused about the difference between web servers and application servers.I know that tomcat,JBoss and weblogic are application servers , but can anyone clarify what is a web server and can u just name a couple of webservers available? its urgent so please reply as soon as possible.

Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

Tomcat is not an Application Server. It is a Web Container, so that you can have Servlets and JSP, it also allows for static HTML pages too.

Apache is a Web Server, it only serves static web pages. But can also be used as a "load balancer" in from of Tomcat.

So let change the notion of an Application Server to two notions. One of Web Container for Servlets and JSP and the other of an EJB Container which handles EJBs.

So now for instance, JBoss Application Server includes an EJB container and Tomcat Web Container.

I hope this clarifies things a bit more for you. Think more in terms of the Java EE technologies and what containers you would need to support each technology.


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: webservers VS application servers
It's not a secret anymore!