Added to FAQ:

https://cwiki.apache.org/confluence/display/TAPESTRY/Frequently+Asked+Questions#FrequentlyAskedQuestions-Myservicestartsathread%3BhowdoIknowwhentheapplicationisshuttingdown%2Ctostopthatthread%3F


On Fri, Sep 17, 2010 at 2:33 PM, Howard Lewis Ship <hls...@gmail.com> wrote:
> This is not a discussion for the dev list; it should be on the users list.
>
> On Fri, Sep 17, 2010 at 12:13 PM, Dmitry Gusev <dmitry.gu...@gmail.com> wrote:
>> Contribute RegistryShutdownListener like this:
>>
>>    public MyClass buildMyClass(RegistryShutdownHub hub)
>>    {
>>        MyClass result = new MyClass();
>>
>>        // MyClass should implement RegistryShutdownListener interface
>>
>>        hub.addRegistryShutdownListener(result);
>>
>>        return result;
>>    }
>>
>> On Fri, Sep 17, 2010 at 21:02, hese <1024h...@gmail.com> wrote:
>>
>>>
>>> Hi,
>>>
>>> I have written a tapestry service and added it to AppModule.java (using
>>> function buildMyClass()).  This service class uses a thread to execute some
>>> processes.  Now, the question is how do I know if the web app/tapestry is
>>> shutting down so that I can do clean up stuff in my class??
>>>
>>> Thanks!
>>> hese.
>>> --
>>> View this message in context:
>>> http://tapestry.1045711.n5.nabble.com/how-to-cleanup-threads-when-tapestry-shutsdown-tp2844012p2844012.html
>>> Sent from the Tapestry - Dev mailing list archive at Nabble.com.
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscr...@tapestry.apache.org
>>> For additional commands, e-mail: dev-h...@tapestry.apache.org
>>>
>>>
>>
>>
>> --
>> Dmitry Gusev
>>
>> AnjLab Team
>> http://anjlab.com
>>
>
>
>
> --
> Howard M. Lewis Ship
>
> Creator of Apache Tapestry
>
> The source for Tapestry training, mentoring and support. Contact me to
> learn how I can get you up and productive in Tapestry fast!
>
> (971) 678-5210
> http://howardlewisship.com
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to