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!

How to "kill" a servlet?

Status
Not open for further replies.

thelordoftherings

Programmer
May 16, 2004
616
IL
Hello,

I am calling a certain Servlet from a JSP page when the page is submitted.
My questio is how can I verify that the Servlet's instance has been "killed" and no longer live so at the next submit I can be sure that a new instance is created and also be sure that this newly created instance is the ONLY ONE at the container?
 
Servlets are only ever created once inside a container - that is to say, there is only ever one instance per JVM.

--------------------------------------------------
Free Database Connection Pooling Software
 
As far as I know that ias not true.
The container manages a pool of Servlets so there can be more than one... Am I right?
 
I believe you are incorrect.

Servlets are only ever created once inside a container - that is to say, there is only ever one instance per JVM.

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

Part and Inventory Search

Sponsor

Back
Top