> Ying Su wrote:
>
> I want a thread to run all the time while my Tomcat is running,
> like a daemon. Can I invoke it in the init() method of
> my servlet?

 It generally isn't such a good idea to spawn threads
from your servlets. Remember: the container can swap out
your servlets if there are no active requests. There's
probably a better way to do what you want.


> If so, how can I check the status of the
> thread?
>

 What do you mean "check the status of the thread"?


 In any case, you might find this useful:

   http://www.distributopia.com/servlet_stuff/background_threads.html



--
Christopher St. John [EMAIL PROTECTED]
DistribuTopia http://www.distributopia.com

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to