Yes, read up on ContextListeners.
On Wed, 2004-11-10 at 15:15, Bill McHugh wrote: > I know that you can use <load-on-startup> to run a servlet when an application > is started. Is there a way to specify that a particular servlet (or java > class) is to be run when (a) the application is stopped, and (b) when Tomcat > is shut down (or will shutting down Tomcat automatically trigger (a))? TIA > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]