This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Servlets and the fly likes calling destroy in init method Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "calling destroy in init method" Watch "calling destroy in init method" New topic
Author

calling destroy in init method

clyde melly
Ranch Hand

Joined: Sep 04, 2003
Posts: 152
under what circumstances can i call destroy method from init.shud we call??
Kalai Selvan
Ranch Hand

Joined: Jul 07, 2004
Posts: 79
Hi,
First of all is there any specific reason to call destroy method in the init method?

destroy method is normally used for freeing the resources held by the servlet. So even if we call the destroy method from init, it will not destroy the object.

Kalai Selvan T.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: calling destroy in init method
 
Similar Threads
init and destroy method
destroy() method of servlets
destroy() method
what happend,when we call destroy() in service() method?
when destroy method will call