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
Explain the term Naming Packages in details? As you saw previously name space conflicts arise if two pieces of code declare the similar name. Java remains track of what belongs

This is a two part project, one in Alice, and another in Java. You can either zip the files together as one and upload the single zip file, OR upload the separate files. If you dec

Smugglers are becoming very smart day by day. Now they have developed a new technique of sending their messages from one smuggler to another. In their new technology, they are send

What is the use of UnicastRemoteObject in RMI? Ans) The UnicastRemoteObject class gives support for point-to-point active object references using TCP streams. Objects that need

How does a try statement determine which catch clause should be used to handle the exception?

student are required to construct classes for circle,triangle,trapezium and kite.

There are three layers:-  a . Stub and Skeleton layer This layer lies just under the view of the developer. This layer intercepts method calls made by the client to the inte

Component classes generally move the task of generating output to the renderer. All JSF components follow it. Render kit is a set of related renderers. javax.faces.render.RenderKit

Converting Strings to Numeric Primitive Data Types To convert a string which is containing digits to a primitive data type, wrapper classes can help. parseXxx method can be u

Need to develop a 3D rolling alarm clock (Android) Project Description: I want an android app as 3D rolling alarm clock It should have sound effect when setting the alarm