users@glassfish.java.net

WAR/ Thead being sutdown

From: Baker, Brad \(Contr\) <"Baker,>
Date: Tue, 20 Feb 2007 09:08:05 -0500

Hi all,

 

I start a thread in the static block of a Web Service WAR. After X
amount of time the thread is stopped. No errors in the log, it just
stops. Why is this happening and is there a way to keep glassfish from
killing my thread? If I call the web service from time to time will
that keep the tread alive? Is there a better way to have a daemon
running for the lifetime of the application container?

 

Thank you,

Brad