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.

 

428_Untitled.png

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
Consider the following code? What input is needed for x in order for the sum variable that is output at the end of the code to be 12 ? (In other words: what do I need to make X be

Describe the Superclass in Inheritance ? In this example you start through defining a more common MotorVehicle class. public class MotorVehicle { private String licensePlat

How to Passing Parameters to Applets ? Parameters are passed to applets in NAME=VALUE pairs in tags among the opening and closing APPLET tags. Inside the applet, you read th

Give an example of code using static and finalize Example Code: using static & finalize () We want to count exact number of objects in memory of a Student class the one de

Question 1 Explain any five buzz words in Java 2 Explain exception classes and also explain common exceptions in java 3 Explain primitive and abstract data type in java

what is the code for page replacement algorithms in nachos os

The significant methods of ActionForm are: validate () & reset ().

Explain traversing through a collector using Iterator. Ans. We can access each element in Collection by using Iterators regardless of how they are organized in collector. Ite

Need Remote Synchronization tool for folders and files? Project Description:                 We want a tool to synchronize the content of one or more folders on the file syst

When wiring beans, if a bean element is embedded to a property tag directly, then that bean is said to the Inner Bean. The disadvantage of this bean is that it cannot be reused any