Thanx, Chris. Looks like this should solve my purpose. Will check it out and
get back.
Regards
On Fri, Mar 14, 2008 at 8:17 PM, Christopher Schultz <
[EMAIL PROTECTED]> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Tushar,
>
> Tushar Madhukar wrote:
> | Is there a way by which Tomcat can invoke a callback on these classes
> | (shared/*) when it is shutting down? [snip]
> | Basically, I would use an equivalent of
> | ServletContextListener.contextDestroyed() callback in deployed contexts.
>
> So, you want something that only runs on JVM shutdown? How about
> Runtime.addShutdownHook?
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.8 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iEYEARECAAYFAkfaj/IACgkQ9CaO5/Lv0PDwqQCfXCMK3g5NWb1Kjr72LUNU/F0w
> aJEAoKI73bVu8AHnKCt7CI5nbTPuNHXb
> =hJUP
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to