What is Servlet Container in Java?
Servlet
Container
· If client or user can request to
server only for static web pages. But what if client wants dynamic web page at
that time servlet container plays important role.
· Servlet containers returns dynamic
web pages based on user input.
·
The servlet container is the part
of web server which can be run in a separate process. We can classify the
servlet container states in three types:
o Standalone:
It is typical Java-based servers in which the servlet container and the web
servers are the integral part of a single program. For example:- Tomcat
o In-process
state:- It is separated from the web server, because a different program runs within the address space of
the main server as a plug-in. Example:- Tomcat running inside the JBoss.
o
Out-of-process: The web server and
servlet container are different programs which are run in a different process.
For performing the communications between them, web server uses the plug-in
provided by the servlet container.
· Servlet container provide some
features which are given below:
o Security
o Multithreaded
support
o Life
Cycle Management
o Object
Pooling
o
Etc.
Comments
Post a Comment