Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

New to servlets...does servlet remain in memory all the time..

Status
Not open for further replies.

patnim17

Programmer
Jun 19, 2005
111
US
Hi,
I am new to servlets. My questions is when there is a HTTP request for a servlet, then the servlet gets loaded in the memory and and the init() method is called. After it is invoked once, does it remain in the memory, forever.
When is it removed from the memory?

nims
 
In effect, the servlet is loaded into the JVM once, and once only for the lifetime of the container - and init() is only called once.

--------------------------------------------------
Free Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top