CoolInterview.com - World's Largest Collection of Interview Questions & Answers, FAQs, queries, sample papers, exam papers, dumps, what, why, how, where, when questions
Our Services
Get 9,000 Interview Questions & Answers in an eBook.




Get it now !!
Send your Resume to 6000 Companies

Search Interview Questions

Question: Difference between application server and web sever?

Answer: Web server serves pages for viewing the web browser( i.e HTML,JSP,ASP etc.)using http protocol. While application server handles business logic,such as transaction processing,messaging ,resource pooling, security and messaging etc.Both are accessing via the http request, so from the client view point there no much difference.



Category Servlet Interview Questions & Answers - Exam Mode / Learning Mode
Rating (0.5) By 638 users
Added on 12/23/2012
Views 8129
Rate it!
Question: Difference between application server and web sever?
Answer:

Web server serves pages for viewing the web browser( i.e HTML,JSP,ASP etc.)using http protocol. While application server handles business logic,such as transaction processing,messaging ,resource pooling, security and messaging etc.Both are accessing via the http request, so from the client view point there no much difference. Source: CoolInterview.com

Answered by: Amal Dev k A | Date: 1/29/2008 | Contact Amal Dev k A Contact Amal Dev k A

Application server is the server on which we deploy the applications, like we have Web sphere application Server, Biz talk server, Apache, Oracle Application Server etc.
While web server is used to hide the direct access of Application server and we host the applications URL on web server.We can use http server, IIS etc. Source: CoolInterview.com

Answered by: Manish | Date: 1/29/2008 | Contact Manish Contact Manish

Application server have capability of built in middle ware services for transactions and EJB specifications but web servers do not have. Source: CoolInterview.com

Answered by: kalyan ram | Date: 1/30/2008 | Contact kalyan ram Contact kalyan ram

web server used to generate static & dynamic web pages.
Application server used to perform the logical calculation. Source: CoolInterview.com

Answered by: ramprasad | Date: 1/31/2008 | Contact ramprasad Contact ramprasad

Application Server:The Application Server Maintains Persistent Connection to Database and Converts application tables and peopletools into HTML.
WebServer: WebServer includes webservices software that display the html to the browser. Source: CoolInterview.com

Answered by: Chakradhar Reddy | Date: 1/31/2008 | Contact Chakradhar Reddy Contact Chakradhar Reddy

Webserver:-
Webserver can execute only web application i.e servlets ansd jsp and has only single container know as web container which is used to execute webapplication

Application server:-
Application server can execute enterprise application (i.e sevlets,jsp,EJB).it is having two container
1) web container(jsp,servlets)
2) EJB Container Source: CoolInterview.com

Answered by: pragnesh | Date: 2/4/2008 | Contact pragnesh Contact pragnesh

Application server - supports all kind of protocol, it have all container including EJB container.It is mainly used for the dynamic process.
e.g Weblogic

Webserver -supports only http protocol.It does not have EJB container.e.g Tomcat



Source: CoolInterview.com

Answered by: Pradeep Ruban.T | Date: 2/6/2008 | Contact Pradeep Ruban.T Contact Pradeep Ruban.T

WEB SERVER:
A Web server handles the HTTP protocol. When the Web server receives an HTTP request, it responds with an HTTP response, such as sending back an HTML page. To process a request, a Web server may respond with a static HTML page or image, send a redirect, or delegate the dynamic response generation to some other program such as CGI scripts, JSPs (JavaServer Pages), servlets, ASPs (Active Server Pages), server-side JavaScripts, or some other server-side technology. Whatever their purpose, such server-side programs generate a response, most often in HTML, for viewing in a Web browser.

Understand that a Web server's delegation model is fairly simple. When a request comes into the Web server, the Web server simply passes the request to the program best able to handle it. The Web server doesn't provide any functionality beyond simply providing an environment in which the server-side program can execute and pass back the generated responses. The server-side program usually provides for itself such functions as transaction processing, database connectivity, and messaging.

While a Web server may not itself support transactions or database connection pooling, it may employ various strategies for fault tolerance and scalability such as load balancing, caching, and clustering?features oftentimes erroneously assigned as features reserved only for application servers.


APPLICATION SERVER

As for the application server, according to our definition, an application server exposes business logic to client applications through various protocols, possibly including HTTP. While a Web server mainly deals with sending HTML for display in a Web browser, an application server provides access to business logic for use by client application programs. The application program can use this logic just as it would call a method on an object (or a function in the procedural world).

Such application server clients can include GUIs (graphical user interface) running on a PC, a Web server, or even other application servers. The information traveling back and forth between an application server and its client is not restricted to simple display markup. Instead, the information is program logic. Since the logic takes the form of data and method calls and not static HTML, the client can employ the exposed business logic however it wants.

In most cases, the server exposes this business logic through a component API, such as the EJB (Enterprise JavaBean) component model found on J2EE (Java 2 Platform, Enterprise Edition) application servers. Moreover, the application server manages its own resources. Such gate-keeping duties include security, transaction processing, resource pooling, and messaging. Like a Web server, an application server may also employ various scalability and fault-tolerance techniques. Source: CoolInterview.com

Answered by: Jyoti | Date: 2/18/2008 | Contact Jyoti Contact Jyoti

Webserver is used to deploy web applications where as application server is used to run enterprise applications. Source: CoolInterview.com

Answered by: devika rani | Date: 2/20/2008 | Contact devika rani Contact devika rani

A Web server serves pages for viewing in a Web browser, while an application server provides methods that client applications can call. A little more precisely, you can say that:

A Web server exclusively handles HTTP requests, whereas an application server serves business logic to application programs through any number of protocols. Source: CoolInterview.com

Answered by: jverma | Date: 2/25/2008 | Contact jverma Contact jverma

(1) Web server serves pages for viewing in web browser, application server provides exposes business logic for client applications through various protocols.
(2) Web server exclusively handles http requests.Application server serves business logic to application programs through any number of protocols.
(3) Web server delegation model is fairly simple,when the request comes into the web server,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 behavior than web server. We can also configure application server to work as a web server.Simply application server is a superset of web server. Source: CoolInterview.com

Answered by: Samit Katiyar | Date: 3/14/2008 | Contact Samit Katiyar Contact Samit Katiyar

1. application server has the ejb container while web server has not.
2. Applications server provide some extra services like as JTS, JMS etc while web server not provide the services. Source: CoolInterview.com

Answered by: Bed Singh | Date: 3/17/2008 | Contact Bed Singh Contact Bed Singh

The application server work with stand alone applications at the same time work with web enterprise applications like EJB.

whereas coming to web server ,it works with only web applications.It does not support to enterprise applications.

we can take example like
tomcat server is web server and web apllication server whereas web logic is web enterprise application server. Source: CoolInterview.com

Answered by: anjaneyulu | Date: 3/26/2008 | Contact anjaneyulu Contact anjaneyulu

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

Application server = Web Server + EJB.
Web server doesn't support EJB Source: CoolInterview.com

Answered by: Anitha | Date: 4/9/2008 | Contact Anitha Contact Anitha

1. BEA WebLogic Server is an enterprise-ready Java EE application server that supports the deployment of mission-critical applications in a robust, secure, highly available, and scalable environment. Using web server we can deploy the applications like Jsp&servlets only.Using Appl server we can deploy the applications like Jsp&servlets and ejb also
2. 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.

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. Web server handles only Http requests where as Application server handles any protocol requests

5 . Web server is 3-tier architecture where as Application server is n-tier architecture.


Webserver:-
Webserver can execute only web application i.e servlets ansd jsp and has only single container know as web container which is used to execute webapplication

Application server:-
Application server can execute enterprise application (i.e sevlets,jsp,EJB).it is having two container
1) web container(jsp,servlets)
2) EJB Container
Source: CoolInterview.com

Answered by: Ashish Jangid | Date: 6/18/2009 | Contact Ashish Jangid Contact Ashish Jangid

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

Application server = Web Server + EJB.
Web server doesn't support EJB
Source: CoolInterview.com

Answered by: praveen | Date: 9/21/2009 | Contact praveen Contact praveen


If you have the better answer, then send it to us. We will display your answer after the approval

Rules to Post Answers in CoolInterview.com:-

  • There should not be any Spelling Mistakes.
  • There should not be any Gramatical Errors.
  • Answers must not contain any bad words.
  • Answers should not be the repeat of same answer, already approved.
  • Answer should be complete in itself.

Post your answer here

Inform me about updated answers to this question.
Related Questions
View Answer
What is the difference between servlets and jsp?
View Answer
how do you compile servlet program?
View Answer
Why init is used and not constructor for servlets initialization?

View Answer
How can we refresh the servlet for every 2 minutes automatically?

View Answer
What is servlet ,what is the use of it?

View Answer
How can a web container know whether cookies are accepted or not accepted by the browser

View Answer
What is pure servlet?

View Answer
What is the diff b/w doGet() and service() method?

View Answer
When destroy method get call, will it call for each user please give the ans in detail?

View Answer
Can we use any other technology than JSP to construct a view ?

View Answer
When we are saving form bean ,What is the difference between session scope and request scope.

View Answer
How to build struts in java?
What are the function of struts?

View Answer
How can i pass info from dyna form bean to Entity Bean(CMP)

View Answer
What is the actual difference between MVC and MVC Model2




View Answer
In which pattern does all the action classes in the struts are organized

View Answer
What is the use of findbyprimarykey()?

View Answer
What is difference between Design Pattern and FrameWork.

View Answer
What is the difference between servlet context and servlet config




View Answer
Whats meant by struts?how to use struts in IBM websphere appli. ?
and how to managed with struts?(plz answer simply just an intro. don't go very deep)

View Answer
I have linux OS.I installed Tomcat 4. in Linux.
Now, i have to deploy My web application into that using WAR
file.

Please tell me steps....and also steps for the creating the WAR file too.

View Answer

Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.

View All Servlet Interview Questions & Answers - Exam Mode / Learning Mode




India News Network
Latest 20 Questions
Payment of time- barred debt is: (a) Valid (b) Void (c) Illegal (d) Voidable
Consideration is defined in the Indian Contract Act,1872 in: (a) Section 2(f) (b) Section 2(e) (c) Section 2(g) (d) Section 2(d)
Which of the following is not an exception to the rule, "No consideration, No contract": (a) Natural love and affection (b) Compensation for involuntary services (c) Completed gift (d) Agency
Consideration must move at the desire of: (a) The promisor (b) The promisee (c) The promisor or any other party (d) Both the promisor and the promisee
An offer which is open for acceptance over a period of time is: (a) Cross Offer (b) Counter Offer (c) Standing Offer (d) Implied Offer
Specific offer can be communicated to__________ (a) All the parties of contract (b) General public in universe (c) Specific person (d) None of the above
_________ amounts to rejection of the original offer. (a) Cross offer (b) Special offer (c) Standing offer (d) Counter offer
A advertises to sell his old car by advertising in a newspaper. This offer is caleed: (a) General Offer (b) Special Offer (c) Continuing Offer (d) None of the above
In case a counter offer is made, the original offer stands: (a) Rejected (b) Accepted automatically (c) Accepted subject to certain modifications and variations (d) None of the above
In case of unenforceable contract having some technical defect, parties (a) Can sue upon it (b) Cannot sue upon it (c) Should consider it to be illegal (d) None of the above
If entire specified goods is perished before entering into contract of sale, the contract is (a) Valid (b) Void (c) Voidable (d) Cancelled
______________ contracts are also caled contracts with executed consideration. (a) Unilateral (b) Completed (c) Bilateral (d) Executory
A offers B to supply books @ Rs 100 each but B accepts the same with condition of 10% discount. This is a case of (a) Counter Offer (b) Cross Offer (c) Specific Offer (d) General Offer
_____________ is a game of chance. (a) Conditional Contract (b) Contingent Contract (c) Wagering Contract (d) Quasi Contract
There is no binding contract in case of _______ as one's offer cannot be constructed as acceptance (a) Cross Offer (b) Standing Offer (c) Counter Offer (d) Special Offer
An offer is made with an intention to have negotiation from other party. This type of offer is: (a) Invitation to offer (b) Valid offer (c) Voidable (d) None of the above
When an offer is made to the world at large, it is ____________ offer. (a) Counter (b) Special (c) General (d) None of the above
Implied contract even if not in writing or express words is perfectly _______________ if all the conditions are satisfied:- (a) Void (b) Voidable (c) Valid (d) Illegal
A specific offer can be accepted by ___________. (a) Any person (b) Any friend to offeror (c) The person to whom it is made (d) Any friend of offeree
An agreement toput a fire on a person's car is a ______: (a) Legal (b) Voidable (c) Valid (d) Illegal
Cache = 0.03125 Seconds