Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

When a servlet is removed by the container?

 
Bruce Jin
Ranch Hand
Posts: 672
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it removed only when the Tomcat shuts down?
 
Asher Tarnopolski
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Juanjo Bazan
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the servlet have received some request since the last startup, yes, you should shut down tomcat to be sure your servlet is unloaded.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic