Hi list,
I am slightly confused with the servlet life cycle. Say, I invoke a servlet (LoginServlet) from a html page. This invoked servlet goes through an init phase,handles the service call in which it throws another page dynamically. When the user gets this display on his browser, is that when the servlet destroys itself?
Supposing another client requests for the same servlet then, does the server create another instance in which case the init cycle is not performed ( am I right here???) or does it create another servlet object to service the second call?
The reason for this question is because I want to maintain the connections (to databases) that I make in the init method of the first servlet to service all requests to that servlet.
Does Apache support such instance persistance mechanism?
Thanks k Regards
Ravi Kumar Gopalankutty
Cognizant Technology Solutions,
Ph: 044-2354281 Extn:4423
e-mail: [EMAIL PROTECTED]
_______________________________________________________________
