Thank you,Christopher!
I want to check how many threads are currently running or blocked,etc. on my JVM. Do
you know how to do?
best regards
Ying
----- Original Message -----
From: "Christopher K. St. John" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 15, 2002 1:13 PM
Subject: Re: invoke a thread by servlet
> > 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
>
>
>
��칻�&ޱ��zf���%��lz��j���w(��݊w%�ע��^n�r��azg����('���K2
LDDI0+r�z�m���j�!�����ڲ�ܢoڭ�b��?����b�z�a�iQz�.�Ǭ��i��ڽ�.��&���v�-����^������jZ��q�!�iK!$�GzZa���
0����&�f���l�����z�m�