On suggestion
Use <load-on-startup> to start a servlet.
And in this servlet define the destroy method
public destroy() {
}
Have this call your other servlet or class.
Hope this helps,
Nichoals Orr
-----Original Message-----
From: Santosh Kulkarni [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 16 October 2002 3:48 PM
To: [EMAIL PROTECTED]
Subject: Help in Tomcat4.x
Hi,
Is there any element similar to <load-on-startup> that
we can place in web.xml to invoke a servlet at the
shut-down of the web application/server. I want to
call a servlet when the Tomcat service is stopped. In
this servlet I want to release all the database
connections held.
Any pointers to this are welcome.
TIA
Santosh
__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More http://faith.yahoo.com
--
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]>