0 Replies Latest reply on Jan 16, 2007 11:45 AM by Tim Fox

    XAResourceRecovery close?

    Tim Fox Master

      I'm implementing an XAResourceRecovery class which creates an XAConnection to the jms server, gets the XAResource and returns that in the getXAResource() method.

      This is all fine, but I can't find any lifecycle methods that get called on the XAResourceRecovery() when the recovery manager is done with it, so we can close any underlying resources.

      At some point we need to close the connection. Without such a lifecycle method how can I know when it is safe to close the underlying connection?

      I can use a finalizer, but I'd rather not.