Rajneesh Garg wrote:
>
> Hi there,
>
> What is the difference between a Servlet Container and Servlet Engine? What
> role do they play in a Web Server? and how?
Servlet container is the term introduced in the Servlet 2.2 for what used to
be called servlet engine. The "engine" term was never formally defined, it just
became what people called the thing. The "container" term was chosen to be in
line with other parts of the J2EE, such as the "EJB container", and is now
often referred to as the "web container" with support for both servlets and JSP.
The servlet container is responsible for mapping requests to servlets in
servlet contexts, and provides the runtime environment for servlets (e.g.
life cycle support, creating request and response objects, etc.). A web server
may have a servlet container built in (e.g. Java Web Server, Tomcat,
LiteWebServer),
or may need an add-on/plugin servlet container (e.g. Apache, NES, iPlanet
WebServer,
IIS). An add-on container can run in the same or a separate process as the web
server, and typically communicates with the web server through its proprietary
API, such as NSAPI or ISAPI.
Hans
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets