Hi, Works for me... Yoav Shapira Millennium Research Informatics
>-----Original Message----- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >Sent: Thursday, June 10, 2004 8:50 AM >To: [EMAIL PROTECTED] >Subject: No destroy() method called on Tomcat 5.0.24 shutdown > >Hi, > >During the shutdown sequence of my Web Application I would like to have >some code executed. I implemented the destroy() method of a Servlet and >implemented a ServletContextListener. > >Both of these get called when the application is reloaded. >But neither of these is called when I shutdown Tomcat. > >Shouldn't these methods get called no matter how the servlet is being taken >out of service: > ><quote> >Called by the servlet container to indicate to a servlet that the servlet >is being taken out of service. This method is only called once all threads >within the servlet's service method have exited or after a timeout period >has passed. After the servlet container calls this method, it will not call >the service method again on this servlet. > >This method gives the servlet an opportunity to clean up any resources that >are being held (for example, memory, file handles, threads) and make sure >that any persistent state is synchronized with the servlet's current state >in memory. </quote> > > >I am using Tomcat 5.0.24 >This is on Windows 2K/XP >Using And controlling Tomcat using the Tomcat Monitor. > >Regards, > >Johan Philippe This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]