> But when the page finishes and there is no reference to the threaded
> object, won't the thread die

The thread dies when the run methods exits.
It has nothing to do with references. The thread object will be garbage
collected when there are no more references and the run method has exited

Filip

----- Original Message -----
From: "Ted Husted" <[EMAIL PROTECTED]>
To: "Tomcat User List" <[EMAIL PROTECTED]>
Sent: Tuesday, December 26, 2000 11:06 AM
Subject: Re: Running a thread from a JSP


> What is it that you are actually trying to do?
>
> (The end to which keeping this thread alive is a means?)
>
> *********** REPLY SEPARATOR  ***********
>
> On 12/26/2000 at 10:54 AM David M. Holmes wrote:
>
> But when the page finishes and there is no reference to the threaded
> object, won't the thread die?
>
> --- William Brogden <[EMAIL PROTECTED]> wrote:
> >
> >
> > "David M. Holmes" wrote:
> > >
> > > Is there a way to spawn a thread from a JSP that will live after
> the page goes out of scope?
> >
> > There is nothing magic about a JSP servlet - you can certainly
> > create objects and start Threads that will continue after
> > the response has been sent.
> >
> > --
> > WBB - [EMAIL PROTECTED]
> > Java Cert mock exams http://www.lanw.com/java/javacert/
> > Author of Java Developer's Guide to Servlets and JSP
> > ISBN 0-7821-2809-2
> > .
> >  JSP
> > ISBN 0-7821-2809-2
> > .
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Shopping - Thousands of Stores. Millions of Products.
> http://shopping.yahoo.com/
>
>

Reply via email to