RE: Load-on-Startup child-threads not dying at context-reload

2004-10-19 Thread Shapira, Yoav
Hi, Hmm, then is there a recommended way for managing child threads that are kicked off by a servlet? My servlet reads an XML file to determine what classes to create and run - but if the Servlet itself goes away and then is re-init()ed it will attempt to start those classes again. Does every

Re: Load-on-Startup child-threads not dying at context-reload

2004-10-19 Thread Jonathan Wilson
Great ideas Yoav. Thank you for your comments/input. --JW Shapira, Yoav wrote: Hi, Hmm, then is there a recommended way for managing child threads that are kicked off by a servlet? My servlet reads an XML file to determine what classes to create and run - but if the Servlet itself goes

Re: Load-on-Startup child-threads not dying at context-reload

2004-10-18 Thread Ben Souther
If upgrading Tomcat is possible, a context listener would be a better design. On Mon, 2004-10-18 at 15:51, Jonathan Wilson wrote: I have a load-on-startup1/load-on-startup Servlet on TC3.3.1(under RH7.3) which checks an XML file which contains a list of Runnable classes to kick off at

Re: Load-on-Startup child-threads not dying at context-reload

2004-10-18 Thread Jonathan Wilson
I'm working on getting the next release out on TC5. I don't think that would fix my threading issue, however. JW Ben Souther wrote: If upgrading Tomcat is possible, a context listener would be a better design. On Mon, 2004-10-18 at 15:51, Jonathan Wilson wrote: I have a

RE: Load-on-Startup child-threads not dying at context-reload

2004-10-18 Thread Shapira, Yoav
Hi, servlet). These are daemon threads, and have the setDaemon(true) set for the thread before I kickoff the runnable class. The problem I'm experiencing is that when the context needs to be reloaded these child threads are not killed, but continue to run. Why would they be killed? The JVM

Re: Load-on-Startup child-threads not dying at context-reload

2004-10-18 Thread Jonathan Wilson
Hi, Shapira, Yoav wrote: Hi, servlet). These are daemon threads, and have the setDaemon(true) set for the thread before I kickoff the runnable class. The problem I'm experiencing is that when the context needs to be reloaded these child threads are not killed, but continue to run.