you could implement the destory() method of a servlet. Tomcat calles this before going down.
> Hi, > > I have a wck implementation, which works fine. I would like to add caching > to it in order to make it snappier, but the problem I am running into is > that my cache thread is not terminated when tomcat shuts down, leaving me > to have to manually kill the server each time. Is there a hook someplace > in Tomcat to accomplish this? I've looked through the documentation and > don't see anything obvious. > > Failing that, is there a better way to do this rather than just have a > background thread periodically update the cache? Suggestions welcomed. > > Cheers, > > j > > > > > --------------------------------------------------------------------- > 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]
