You need to regeister that thread "somewhere" so it can be stopped on webapp shutdown. See ServletContextListener for hooking into webapp startup and shutdown.

-Tim

René Hužva wrote:

Hi,
I create a one thread in a application, which runs in Tomcat (application doesn't run as servlet). When I reload application from Tomcat Manager, application is reloaded, but thread isn't destroy and it's created second thread, third, etc.
How have destroy a thread, when is applicaton reloaded (or stopped) from Tomcat Manager?

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



Reply via email to