The servlet2.3 specification introduces the HttpServletContext listener
class.
When tomcat is shutdown, I think that the contextDestroyed() method of this
class
will be called.

Sandra

-----Original Message-----
From: Nicholas Orr [mailto:[EMAIL PROTECTED]]
Sent: 25 September 2002 10:41
To: 'Tomcat Users List'
Subject: RE: webapp shutdown


You could have a servlet that is called "StartUp_ShutDown" use
<load-on-startup>1</load-on-startup> to start it and everything that needs
to be done on start up put in the init() method, and then when tomcat is
shutdown it will call the destroy() method.

One suggestion, probably others.

Nicholas Orr

-----Original Message-----
From: RP C987342 [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, 25 September 2002 6:37 PM
To: [EMAIL PROTECTED]
Subject: webapp shutdown



My webapp needs to know when Tomcat shuts down in order
to do some cleanup. How can I do this?

For startup, I am using the following tag in my web.xml
<load-on-startup>1</load-on-startup>
Is this the correct method?

Or is there a way to register startup/shutdown classes
with Tomcat?

_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


**********************************************************************
The information contained in this e-mail is confidential and is
intended only for the use of the addressee(s).
If you receive this e-mail in error, any use, distribution or
copying of this e-mail is not permitted. You are requested to
forward unwanted e-mail and address any problems to the
MIM Holdings Limited Support Centre.

For general enquires:   ++61 7 3833 8000
Support Centre e-mail:  [EMAIL PROTECTED]
Support Centre phone:   Australia 1800500646
                                        International ++61 7 38338042
**********************************************************************


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to