Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

destroy

 
Yogesh Hingmire
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When the destroy method is called on the servlet
There are no container threads running over this instance's service method.

Is this true ?

I believe the container waits for a certain defined time for the threads to finish before it makes a call to the destroy method and it does not go ahead and kills them.

Thanks
Yogesh
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You would want to clean up your resources using the destroy method. I dont think there is any guarentee over the "no threads running" thing. I would choose false
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic