GeekInterview.com
Series: Subject:
Question: 30 of 33

What is the difference between application and web server ?

Asked by: Interview Candidate | Asked on: Oct 14th, 2005
Showing Answers 1 - 14 of 14 Answers
sushil kumar

Answered On : Oct 18th, 2005

Difference between AppServer and a Web server
(1) Webserver serves pages for viewing in web browser, application server provides exposes businness logic for client applications through various protocols

(2) Webserver exclusively handles http requests.application server serves bussiness logic to application programs through any number of protocols.

(3) Webserver delegation model is fairly simple,when the request comes into the webserver,it simply passes the request to the program best able to handle it(Server side program). It may not support transactions and database connection pooling.

(4) Application server is more capable of dynamic behaviour than webserver. We can also configure application server to work as a webserver.Simply applic! ation server is a superset of webserver.

Yes  2 Users have rated as useful.
  
Login to rate this answer.
satish240

Answered On : Dec 1st, 2005

View all answers by satish240

Besides to that answer,

1) Webserver doesn't support EJB's where as APP Server supports EJB's

2) Appserver provides load balancing , Transaction , more security .

3) Examples of Webserver are TOMAT ; Examples of AppServer are WEBLOGIC, WEBSPHERE.

  
Login to rate this answer.
Edin

Answered On : Apr 14th, 2006

Correction, he ment TOMCAT I guess.

  
Login to rate this answer.
bharath reddy

Answered On : Jul 10th, 2006

Application server contains dynamic content, web server contains static content .

  
Login to rate this answer.
Rams

Answered On : Aug 4th, 2006

Webserver Contains handlers for handling static content like html,images, scripts where as application server contains handlers for handling the requests to servlets, jsps i.e dynamic content, it also contains container for EJBs

  
Login to rate this answer.
Viswanath Chirravuri

Answered On : Sep 22nd, 2006

Basic differences of application server and the web-server are:

Application server has many additional componenets to the web-server like EJB componenet. But web-server has only the Servlet componenet (known as the catalina) and the JSP componenet (known as the Jasper). Application server also has the web-server in it.

Thats why application servers are very costly compared to the web-servers. Few examples of application servers are: Websphere/WebLogic/JBuilder, etc and few examples of Web-servers are: Tomcat, JRunner, etc.

  
Login to rate this answer.
Ravinder

Answered On : Nov 1st, 2006

-- web server is a part of Application Server.

-- Application server is the superset of web server.

-- web server supports only web applications.

-- Application server supports web, Integrated & as well as distributed   applications.

  
Login to rate this answer.
Sujatars

Answered On : Feb 28th, 2007

View all answers by Sujatars

Webserver serves pages for viewing in web browser

Application server provides exposes business logic for client applications through various protocols

Webserver exclusively handles http requests

Application server serves bussiness logic to application programs through any number of protocols.

Webserver delegation model is fairly simple,when the request comes into the webserver,it simply passes the request to the program best able to handle it(Server side program). It may not support transactions and database connection pooling

Application server is more capable of dynamic behaviour than webserver. We can also configure application server to work as a webserver.Simply applic! ation server is a superset of webserver.

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.

  
Login to rate this answer.
kala.vr

Answered On : Oct 26th, 2007

Bascially, the Application server comes into the picture with Client/Server Techonolgy. Where the in one Server the Database and Business logic Resides. But, Due to heavy load on Database with the complicated Business Logic, these two are divided into two Parts. One is called the Application Server which is used to store the Business Logic and another Database Server.

Where as the Webserver, Is used to serve the Dynmaic content with out Business Logic, for example general HTML pages.

WebServer > Mainly static content (HTML)
WebServer with Servlet engine > Static content and servlets
Webserver with JSP engine > Static + servlet+JSP
App server > provides specialised services including all or some of transaction management, connection pooling, object pooling, security and access control.
App server integrated with webserver > All of the above.

  
Login to rate this answer.
babuajesh

Answered On : Feb 13th, 2008

View all answers by babuajesh

Correction..........

Application server contains dynamic content, web server contains static content .

WebServer can also handle dynamic contents.....
Apache, TOMCAT etc...using these web severs we can write web application that handle dynamic contetnt..like DB manipulations

  
Login to rate this answer.

bharath reddy's answer is wrong. both the application and web servers can have the dynamic and static pages.

  
Login to rate this answer.
Sai Divya

Answered On : Feb 19th, 2009

View all answers by Sai Divya

Webserver: It handles only HTTP protocols and it servers static HTML or images only.

Above all its delegation model is fairly very simple. It may not support transactions and database connection pooling.


Application server:
The application server exposes business logic for client application s through various protocols.
Application server is more capable of dynamic behaviour than webserver. We can also configure application server to work as a webserver.
Simply application server is a superset of webserver. Application server maintains its resources and
include security, transaction processing, resource pooling, and messaging. Like a Web server, an
application server may also employ various scalability and fault-tolerance technique.

In nutshell an application server serves all services what webserver provides but the converse is not true.

  
Login to rate this answer.
mahesh

Answered On : Jan 9th, 2012

Web server: It contain static pages or HTTP images only.

App server: It the user requests to servlets, jsps i.e dynamic content, it also contains container for EJBs

  
Login to rate this answer.
ks9bp

Answered On : Feb 28th, 2012

WEBSEREVER: It will serve only HTTP protocol requests and it will divert the URLs to the application servers. It can serve only static content and is used to display customised error messages.

Application Server: It is the run time environment for JAVA applications. It can serve the requests by HTTP, RMI/IIOP and SOAP protocols. it can serve both static and dynamic contents.

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Ads

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.