aspose file tools*
The moose likes Servlets and the fly likes calling destroy in init method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
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://aspose.com/file-tools
 
subject: calling destroy in init method
 
Similar Threads
destroy() method
what happend,when we call destroy() in service() method?
destroy() method of servlets
when destroy method will call
init and destroy method