There will be people who need to provide their own
XADataSourceImpl implementation in order to retrieve
an XAConnection suitable for use by the pooling
mechanism. In order to properly manage the return of
a connection to a pool, the connection is wrapped in
the existing XAConnectionImpl class, however the
constructor for this class requires an XAResourceImpl.
The XAResourceImpl is a wrapper class for non-XA
connections and it implements the XAResource
interface. When using true XAConnection objects,
a "real" XAResource is available so there is no need
for the wrapper.
I have modified the constructor of XAConnectionImpl
to accept the XAResource interface in place of the