Define the life cycle methods of a servlet? , JAVA Programming

The Web container is used for managing the servlet's life cycle. The Web container produces an instance of the servlet and then the container invokes the init() function. At the completion of the init() function the servlet is in ready state to service givens from clients. The container invokes the servlet's service() function for handling each request by spawning a new thread for each and every request from the Web container's thread pool. Before deleting the instance the container will call the destroy() function. After destroy() the servlet converts the potential candidate for garbage collection.



Posted Date: 7/25/2012 3:54:33 AM | Location : United States

Related Discussions:- Define the life cycle methods of a servlet? , Assignment Help, Ask Question on Define the life cycle methods of a servlet? , Get Answer, Expert's Help, Define the life cycle methods of a servlet? Discussions

Write discussion on Define the life cycle methods of a servlet?
Your posts are moderated
Related Questions
It helps to resolve naming conflicts when different packages have classes with the same names. This also helps you prepare files within your project. As define : package

Why do we need wrapper classes? It is sometimes simpler to deal with primitives as objects. Moreover most of the collection classes keep objects and not primitive data types. A

Support for Web and Enterprise Web Applications Java offers an extensive support for the development of web and enterprise applications Servlets, JSP, Applets, RMI, JDBC, EJBs

Explain primitive data types in java? Java's primitive data types are extremely similar to those of C. They involve boolean, byte, short, long, int, float, double, and char. Th

How Polylines draws in java language? Java automatically closes the polygons it draws. That is it draws polygons which look like the one on the right rather than the one on the

how to implement tsp problem using java applet to present in form of visulation


I need a website to do online marketing Project Description: Develop a website designer/developer to develop a website from scratch. This website has to be written in Java an

What is ARPANET and who developed it? ARPANET stands for Advanced Research Projects. The initial reasons were to communicate along with and share computer resources between mainl

Explain Subclasses and Polymorphism ? Car and Motorcycle are subclasses of MotorVehicle. If you instantiate a Car or a Motorcycle along with new, you can use in which object a