#228 XAConnectionImpl - constructor change

v2.4 (stable)
open
nobody
JBossCX (28)
5
2002-05-23
2002-05-23
Jim Cook
No

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
XAResourceImpl class.

Discussion

  • Jim Cook
    Jim Cook
    2002-05-23

    Patch for XAConnectionImpl

     
    Attachments
  • David Jencks
    David Jencks
    2002-05-23

    Logged In: YES
    user_id=60525

    Can you indicate when you would have an XAConnection without
    an XADataSource that you could use unwrapped instead of the
    fake XADataSourceImpl?

    Even this rather ....(not my favorite code) pooling should
    work with any real XADataSource based driver since all it
    should need to listen to is events from the
    ConnectionEventListener.