XA recovery - getXAResources(): when to close connections?

Francois VanBuren <[email protected]> Mon, 9 May 2005 09:40:15 -0700
Newsgroups gmane.comp.java.sun.connector
Message-ID <[email protected]>
Hallo,

To add XA recovery to a connector, it is necessary to implement this method
in ResourceAdapter:

public XAResource[] getXAResources(ActivationSpec[] specs) throws
ResourceException

Let's say one spec is passed to this method, and using the connection
parameters specified in the spec, the connector establishes a connection to
the EIS. The returned XAResource represents this open connection to the EIS.

My question is when or how this connection to the EIS is supposed to be
closed. Afterall, there's no close() method on the XAResource, and the
container does not have a handle to the underlying connection.

Any insight into this question will be appreciated!
Kind regards,

Francois

===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff CONNECTOR-INTEREST".  For general help, send email to
[email protected] and include in the body of the message "help".