tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: No destroy() method called on Tomcat 5.0.24 shutdown
Date Thu, 10 Jun 2004 12:50:53 GMT

Works for me...

Yoav Shapira
Millennium Research Informatics

>-----Original Message-----
>From: []
>Sent: Thursday, June 10, 2004 8:50 AM
>Subject: No destroy() method called on Tomcat 5.0.24 shutdown
>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
>out of service:
>Called by the servlet container to indicate to a servlet that the
>is being taken out of service. This method is only called once all
>within the servlet's service method have exited or after a timeout
>has passed. After the servlet container calls this method, it will not
>the service method again on this servlet.
>This method gives the servlet an opportunity to clean up any resources
>are being held (for example, memory, file handles, threads) and make
>that any persistent state is synchronized with the servlet's current
>in memory. </quote>
>I am using Tomcat 5.0.24
>This is on Windows 2K/XP
>Using And controlling Tomcat using the Tomcat Monitor.
>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:
For additional commands, e-mail:

View raw message