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
=
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
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
(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
(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
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
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