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 web server Vs App server 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 "web server Vs App server" Watch "web server Vs App server" New topic

web server Vs App server

Rashika Khanna

Joined: Aug 25, 2004
Posts: 13
Please somebody tell me the difference between Web server and Application server or send me some link where I can find the diffrence.

Thanks in advance,
parul sahu

Joined: Sep 19, 2004
Posts: 3
Web Server serves static HTML pages (or gifs, jpegs, etc.), and can also run code written in CGI, JSP etc. A Web server handles the HTTP protocol. Eg of some web server are IIS or apache

An Application Server is used to run business logic or dynamically generated presentation code. It can either be .NET based or J2EE based (BEA WebLogic Server, IBM WebSphere, JBoss).

A J2EE application server runs servlets and JSPs (infact a part of the app server called web container is responsible for running servlets and JSPs) that are used to create HTML pages dynamically. In addition, J2EE application server can run EJBs - which are used to execute business logic.

An Application server has a 'built-in' web server, in addition to that it supports other modules or features like e-business integration, independent management and security module, portlets etc.

See this link from java world -
Rashika Khanna

Joined: Aug 25, 2004
Posts: 13
Thanks parul for the information.

himanshu kumar

Joined: Sep 30, 2004
Posts: 1
A computer that stores Web documents and makes them available to the rest of the world. A server may be dedicated, meaning its sole purpose is to be a Web server, or non-dedicated, meaning it can be used for basic computing in addition to acting as a server.

A software server that lets thin clients use applications and databases that are managed by the server. The application server handles all the application operations and connections for the clients
chikki singh chotala

Joined: Oct 05, 2004
Posts: 7
I think servlet execute inside a servlet container on web server. And also JSP in the web server. Whereas EJB are execute in the EJB container on application server.

Can you clear my doubt about this..............
I agree. Here's the link:
subject: web server Vs App server
It's not a secret anymore!