Lee,
  It would be a great help if you could give me more info on this like where
would you create this new thread, when do you destroy it, and
how exactly did you achieve this.

Thanks,
Samir.

> -----Original Message-----
> From: Lee Collins [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, July 24, 2000 4:03 PM
> To:   [EMAIL PROTECTED]
> Subject:      Re: session cleanup
>
> Samir,
>
> What I have done in the past is to have an additional thread running who's
> job it was to invalidateSessions and free related resources.
>
> You need an object to hold a ref to the Session objet and to the Thread so
> that when each Session is invalidated, you can destroy the thread.
>
> I may be able to give more detail if needed.
>
> Lee
>
>
> >From: "Gharse, Samir (Exchange)" <[EMAIL PROTECTED]>
> >Reply-To: A mailing list about Java Server Pages specification and
> >     reference <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: session cleanup
> >Date: Mon, 24 Jul 2000 14:23:47 -0400
> >
> >  I have some threads running continuously in a session. I need to stop
> >those
> >threads on session exit. If the user goes through my logout screen, it
> >works
> >fine...but if
> >  the browser is closed by the user, though the session is killed the
> >threads
> >still remain active.
> >    I have tried to use HttpSessionBindingListener to do the cleanup but
> >this
> >does not seem to work. If anyone has a better solution please let me
> know.
> >I
> >have tried it on Java web server as well as Apache/tomcat.
> >
> >Thanks.
> >
> >
> >
> >
> >***********************************************************************
> >Bear Stearns is not responsible for any recommendation, solicitation,
> >offer or agreement or any information about any transaction, customer
> >account or account activity contained in this communication.
> >***********************************************************************
> >
> >=========================================================================
> ==
> >To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> >JSP-INTEREST".
> >Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
>
> ==========================================================================
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


***********************************************************************
Bear Stearns is not responsible for any recommendation, solicitation,
offer or agreement or any information about any transaction, customer
account or account activity contained in this communication.
***********************************************************************

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to