logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: background threads: msg#00191

Subject: Re: background threads
Hi Serge,

> I usually use a servlet context listener... on context load, you create
> and start the thread.  On context unload, you tell the thread to stop
> and drop the reference to the thread.  This safely gives the thread
> access to servlet resources, and vice versa.
I tried that, but failed - my ServletContextListener methods never got called. 
Can you (or anybody really) provide me with some sample code known to work?


> I've heard a couple of references to Quartz, and open source project on
> sourceforge (http://www.part.net/quartz.html).  I haven't used it, but I
> know JIRA and open symphony folks use it for their scheduling.  It is
> open source and J2EE focused, so it might work for your needs.
Will look at that, thanks

Joerg

Attachment: pgpz9IHCSKGsC.pgp
Description: signature


Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>