aspose file tools
The moose likes Servlets and the fly likes Servlet Container Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Badass: Making Users Awesome this week in the Game Development forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet Container" Watch "Servlet Container" New topic

Servlet Container

Danish Shaukat
Ranch Hand

Joined: Nov 16, 1999
Posts: 340
Hi all !
Can anyone tell what exactly does a SERVLET CONTAINER mean??
Also whats a servlet engine and whats the difference between container and engine.
Danish Shaukat
[This message has been edited by Danish Shaukat (edited April 01, 2001).]
Karthik Guru
Ranch Hand

Joined: Mar 06, 2001
Posts: 1209
This from what i know ....may be i'm wrong..someon else can defintely correct it.. :-)
Servlet containers are same as servlet engines, they execute and manage servlets. A servlet container is usually written in Java and is either part of a Web server (if the Web server is also written in Java) or otherwise associated with and used by a Web server. When a servlet is called (such as when a servlet is specified by URL), the Web server passes the HTTP request to the servlet container. The container, in turn, passes the request to the servlet. In the course of managing a servlet, a simple container performs the following:
creates an instance of the servlet and calls its init() method to initialize it
calls the service() method of the servlet
calls the destroy() method of the servlet to discard it when appropriate, so that it can be garbage collected
guys correct me if i'm wrong
I agree. Here's the link:
subject: Servlet Container