tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tushar Madhukar" <tushar.madhu...@gmail.com>
Subject Re: Finalizing classes in common or shared directories
Date Mon, 17 Mar 2008 06:24:15 GMT
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 <
chris@christopherschultz.net> 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: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message