aspose file tools*
The moose likes Servlets and the fly likes destroy() method? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "destroy() method?" Watch "destroy() method?" New topic
Author

destroy() method?

Vilas Lawande
Ranch Hand

Joined: Nov 07, 2006
Posts: 127
hi ,

Can destroy() method of servlet execute when server is crashed?

Thanks,
Vilas Lawande
Sebastian Janisch
Ranch Hand

Joined: Feb 23, 2009
Posts: 1183
The Destroy method executes when the server shuts down regularly.
If your system crashes or freezes it might well be that this method is never called.


JDBCSupport - An easy to use, light-weight JDBC framework -
Vilas Lawande
Ranch Hand

Joined: Nov 07, 2006
Posts: 127
thanks a lot
Keshav Prasad gurukul
Greenhorn

Joined: Feb 25, 2009
Posts: 14
since during server crash destroy is not called
we must be prepared for this scenario and must
not depend on it completely for performing cleanup
codes.


SCJP5 94% SCWCD5 86% SCBCD5 86%
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: destroy() method?