When I mean register - I mean creating the capability for the thread to be able to be told (or have the thread learn) that the webapp is being shutdown.


-Tim

René Hužva wrote:

I have created class, which is registered in web.xml as listener. This class implements ServletContextListener and contains two methods, wich writte a message, when is application started or stopped. But why have registered thread? Please help me.

Thank,

renhu


================= Original message ================= Od (From): "Tim Funk" <[EMAIL PROTECTED]> Komu (To): "Tomcat Users List" <[EMAIL PROTECTED]> Kopie (Cc): Předmět (Subject): Re: Threads in application Datum (Date): 21. 10. 2004 16:20 ==================================================

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.

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



Reply via email to