View RSS Feed

Servlet

Servlet Life Cycle

Rate this Entry
by , 01-01-2012 at 04:53 PM (3546 Views)
In order to manage the life cycle of a Servlets, Web container is mainly responsible. Servlets instance gets created by the web container which calls the init() method. At init() method completion, Servlets is present in a ready state to service the requests from client. Servlets service method is being called by container to handle every request, by spawning new threads. For every request, from thread pool of the web container there also exists the possibility to have one threaded servlet. Before the instance gets destroyed, the destroy() method will be called by the container. After destroy(), the servlet is considered as a potential candidate, for collection of garbage.

Name:  9.JPG
Views: 5888
Size:  25.0 KB

Servlet Life Cycle

Submit "Servlet Life Cycle" to Facebook Submit "Servlet Life Cycle" to Digg Submit "Servlet Life Cycle" to del.icio.us Submit "Servlet Life Cycle" to StumbleUpon Submit "Servlet Life Cycle" to Google

Updated 01-15-2012 at 08:38 AM by Servlet

Categories
Session

Comments