Win a copy of Kubernetes in Action this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

destroy method  RSS feed

 
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does the execution of destroy() method is mandate for every servlet when the servlet is being unloaded?
 
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
YES, the container will defintely call the destroy method when the Servlet is not in use by the container.

Nick
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!