tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From René Hužva <re...@seznam.cz>
Subject RE: Threads in application
Date Thu, 21 Oct 2004 14:47:41 GMT
In a destroy method of classes, where is thread started? This I dont't know.
I try it, but tomorrov.
BTW: My application run "in a apache SOAP" So I don't restart my application, but apache SOAP.
My application is deployed in SOAP.

renhu

================= Original Message =================
Od (From): "Phillip Qin" <Phillip.Qin@shareowner.com>
Komu (To): "'Tomcat Users List'" <tomcat-user@jakarta.apache.org>
Kopie (Cc): 
Předmět (Subject): RE: Threads in application
Datum (Date): 21. 10. 2004 16:38
==================================================

> Were you able to stop thread in the destroy method?
> 
> 
> 
> -----Original Message-----
> From: René Hužva [mailto:renhu@seznam.cz] 
> Sent: October 21, 2004 10:33 AM
> To: tomcat-user@jakarta.apache.org
> Subject: Re: Threads in application
> 
> 
> 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" <funkman@joedog.org>
> Komu (To): "Tomcat Users List" <tomcat-user@jakarta.apache.org> 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. How have destroy a thread, when is
> applicaton reloaded (or stopped) from Tomcat Manager?
> > >  
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 
> !DSPAM:4177c8d0272201609119285!

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message