Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between web server and application server [duplicate]

As a layman, how do I understand the difference between web server and application server ? If you could give an example using a Java based web app in very "simple" terms that would be really great..

Also when we say Weblogic, is it a web server only ?

like image 231
copenndthagen Avatar asked Jul 18 '11 13:07

copenndthagen


People also ask

What is difference between webserver and application server?

A web server accepts and fulfills requests from clients for static content (i.e., HTML pages, files, images, and videos) from a website. Web servers handle HTTP requests and responses only. An application server exposes business logic to the clients, which generates dynamic content.

Can web and application server be same?

By strict definition, a web server is a common subset of an application server. A web server delivers static web content—e.g., HTML pages, files, images, video—primarily in response to hypertext transfer protocol (HTTP) requests from a web browser.

Is Tomcat a web server or application server?

Apache Tomcat (Link resides outside IBM) is an open source application server that executes Java Servlets, renders and delivers web pages that include JavaServer Page code, and serves Java Enterprise Edition (Java EE) applications. Released in 1998, Tomcat is the most widely used open source Java application server.

Is WebSphere a web server or application server?

WebSphere Application Server provides the framework for integrating Java applications with a myriad of client devices, business applications and systems. The first version of WebSphere Application Server was released in 1998 and was, primarily, a Java servlet engine.


2 Answers

A web server is something that handles HTTP requests and responses.

An application server (like WebLogic, WebSphere, JBoss AS, Glassfish, etc) usually includes a web server, but also adds a lot more features. The most important is that it manages objects. Whether they will be servlets (Servlet container), EJBs (ejb container), JMS listeners, etc.

like image 97
Bozho Avatar answered Sep 18 '22 19:09

Bozho


Webserver can execute only web applications i,e servlets and JSPs and has only a single container known as Web container which is used to interpret/execute web applications

Application server can execute Enterprise application, i,e (servlets, jsps, and EJBs) it is having two containers 1. Web Container(for interpreting/executing servlets and jsps) 2. EJB container(for executing EJBs). it can perform operations like load balancing , transaction demarcation etc etc

like image 41
Mobile Developer Avatar answered Sep 16 '22 19:09

Mobile Developer