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 <[email protected]> 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 <[email protected]> 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: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>
>
> --
> 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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to