File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

destroy() method

 
Bala Krishna
Ranch Hand
Posts: 95
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Isn't it mandatory for the servlet engines/app.servers to call this method when they are shut down? I am testing the servlets with Resin 2.0.5 and Tomcat 3.3.1. My Servlet has a log statement in the destroy() method which never gets written to the log file (I see all the other log statements), which makes me believe that this method is not being called. So, is this method only called when the servlet is 'unloaded'? If yes, how will the servlets be able to clean up after themselves in case the app.server shuts down?
-Bala.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13048
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you telling the server to shut down? Are you using the Shutdown script provided?
Bill
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic