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
Universal Android and iOS, Multipurpose Testing Application - Based on Phonegap Project Description: Universal Android and iOS, Multipurpose Testing Application Based on Phon


Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve between two points can b

Normal 0 false false false EN-IN X-NONE X-NONE MicrosoftInternetExplorer4

How many iterations would this ‘for' loop run for? for ( x = 50 ; x document.write ( x ) ; } Answer: 50 iterations

Are you real? I dont want to get help from a computer

Finding an Applet's Size When running inside a web browser the size of an applet is set through the height and width attributes and cannot be changed by the applet. Several app

Describe life cycle of thread. Threads follow the single flow of control. A thread is execution in a program. The life cycles of threads are listed below: Newborn state: A


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