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

destroy( ) method

 
Ananth Ram
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

What happens if I call destroy( ) when init( ) is called ??


Tx,
Karthik
 
Ali Gohar
Ranch Hand
Posts: 572
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nothing will happen. destroy() is called by the container when servlet is going to destroy. It is the place provided to the developer to cleanup the resources used.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic