What is the difference between an application server and a Web server

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

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.

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

As for the application server, according to our definition, an application server exposes business logic to client applications through various protocols, possibly including HTTP

The application server manages its own resources, such as security, transaction processing, resource pooling, and messaging.

Comments

Popular posts from this blog

Converting Java Map to String

Difference between volatile and synchronized

Invoking EJB deployed on a remote machine