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