aspose file tools*
The moose likes Tomcat and the fly likes When a servlet is removed by the container? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "When a servlet is removed by the container?" Watch "When a servlet is removed by the container?" New topic
Author

When a servlet is removed by the container?

Bruce Jin
Ranch Hand

Joined: Sep 20, 2001
Posts: 671
Is it removed only when the Tomcat shuts down?


BJ - SCJP and SCWCD
We love Java programming. It is contagious, very cool, and lot of fun. - Peter Coad, Java Design

Crazy Bikes created by m-Power
Asher Tarnopolski
Ranch Hand

Joined: Jul 28, 2001
Posts: 260
i guess when there are no threads running on the servlet's service method. it's up to the server when the servlet will be timeouted and destroyed.
well, i guess it's the right answer, but u better check other opinions too


Asher Tarnopolski
SCJP,SCWCD
Juanjo Bazan
Ranch Hand

Joined: Feb 04, 2002
Posts: 231
If the servlet have received some request since the last startup, yes, you should shut down tomcat to be sure your servlet is unloaded.
 
Consider Paul's rocket mass heater.
 
subject: When a servlet is removed by the container?