Re: Threads in application

2004-10-21 Thread Tim Funk
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 Huva wrote: Hi, I create a one thread in a application, which runs in Tomcat (application doesn't run as servlet). When I reload

Re: Threads in application

2004-10-21 Thread Ren Huva
= Od (From): Tim Funk [EMAIL PROTECTED] Komu (To): Tomcat Users List [EMAIL PROTECTED] Kopie (Cc): Pedmt (Subject): Re: Threads in application Datum (Date): 21. 10. 2004 16:20 == You need to regeister that thread somewhere so it can

RE: Threads in application

2004-10-21 Thread Phillip Qin
Were you able to stop thread in the destroy method? -Original Message- From: Ren Huva [mailto:[EMAIL PROTECTED] Sent: October 21, 2004 10:33 AM To: [EMAIL PROTECTED] Subject: Re: Threads in application I have created class, which is registered in web.xml as listener. This class

Re: Threads in application

2004-10-21 Thread Tim Funk
(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 Huva

RE: Threads in application

2004-10-21 Thread Ren Huva
(From): Phillip Qin [EMAIL PROTECTED] Komu (To): 'Tomcat Users List' [EMAIL PROTECTED] Kopie (Cc): Pedmt (Subject): RE: Threads in application Datum (Date): 21. 10. 2004 16:38 == Were you able to stop thread in the destroy method? -Original

RE: Threads in application

2004-10-21 Thread Phillip Qin
Destroy method should destroy not start your thread. -Original Message- From: Ren Huva [mailto:[EMAIL PROTECTED] Sent: October 21, 2004 10:48 AM To: Tomcat Users List Subject: RE: Threads in application In a destroy method of classes, where is thread started? This I dont't know. I try

RE: Threads in application

2004-10-21 Thread Phillip Qin
Or notify your thread that it should stop and quit. -Original Message- From: Phillip Qin [mailto:[EMAIL PROTECTED] Sent: October 21, 2004 12:21 PM To: 'Tomcat Users List' Subject: RE: Threads in application Destroy method should destroy not start your thread. -Original Message