I know that you can add a ServerLifecycleListener under <Server> in conf/server.xml to receive notifications for the major server lifecycle events, one of which is shutdown.

However, because of the way classloaders work in Tomcat, there is no way (that I know of) to call from the ServerLifecycleListener into application code to do resource cleanup.

In my particular scenario, I'm attempting to use JOTM to gain JTA functionality in Tomcat. However, if I use JOTM, I'm not able to cleanly shutdown Tomcat, since I can not call the JOTM stop method to shut down the transaction manager.

Any thoughts or help either in regard to usefully using the shutdown event or w/ a Tomcat/JTA solution?

Ken

_________________________________________________________________
Watch LIVE baseball games on your computer with MLB.TV, included with MSN Premium! http://join.msn.com/?page=features/mlb&pgmarket=en-us/go/onm00200439ave/direct/01/



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to