Web App Req
Web App Req
1. Web Server
2. Application Server
Web Server
Web server contains only web or servlet container. It can be used for servlet, jsp, struts, jsf etc. It
can't be used for EJB.
It is a computer where the web content can be stored. In general web server can be used to host
the web sites but there also used some other web servers also such as FTP, email, storage, gaming
etc.
⇧ SCROLL TO TOP
https://www.javatpoint.com/server-web-vs-application 2/7
26/02/2022, 22:03 Server: Web vs Application - javatpoint
Important points
If the requested web page at the client side is not found, then web server will sends the HTTP
response: Error 404 Not found.
When the web server searching the requested page if requested page is found then it will
send to the client with an HTTP response.
If the client requests some other resources then web server will contact to application server
and data is store for constructing the HTTP response.
Application Server
Application server contains Web and EJB containers. It can be used for servlet, jsp, struts, jsf, ejb etc.
It is a component based product that lies in the middle-tier of a server centric architecture.
It provides the middleware services for state maintenance and security, along with persistence and
data access. It is a type of server designed to install, operate and host associated services and
applications for the IT services, end users and organizations.
⇧ SCROLL TO TOP
https://www.javatpoint.com/server-web-vs-application 3/7
26/02/2022, 22:03 Server: Web vs Application - javatpoint
← Prev Next →
ADVERTISEMENT BY ADRECOVER
JOBS IN
GERMANY
OPEN
⇧ SCROLL TO TOP
https://www.javatpoint.com/server-web-vs-application 4/7