4 Replies Latest reply on Apr 29, 2005 3:45 PM by bill.burke

    pluggable Xid padding in JCA

    bill.burke

      This is in regards to:

      http://jira.jboss.com/jira/browse/JBAS-1405

      I was looking on how to implement this and it seems the approach would be to create a XAResource proxy whenever the TxConnectionManager.TxConnectionEventListener.getXAResource() is called. As long as the XAResource isn't a LocalTxResource.

      Does this sound good?

        • 1. Re: pluggable Xid padding in JCA

          Yes, that was what we agreed.
          Also, getting the XAResource during recover won't go through the connection manager.

          Normal operation:
          DataSource/ConnectionFactory -> ConnectionManager -> Pool -> MCF -> ManagedConnecton -> XAResource

          However during recovery it doesn't use the pool/connection manager:
          TM -> Recoverable/MCF -> ManagedConnection -> XAResource

          I think you meant creating an XAResource wrapper rather than creating a proxy? :-)
          Make sure to delegate toString() so we don't loose the ability to see the
          real implementation in the logs.

          • 2. Re: pluggable Xid padding in JCA

            Having a getUnderlyingXAResource() may also be useful??

            • 3. Re: pluggable Xid padding in JCA
              bill.burke

              Also, I think a getRecoverable() may be useful in the future as well if one XAResource fails in commit we can retry it

              • 4. Re: pluggable Xid padding in JCA
                bill.burke

                Also, I think a getRecoverable() may be useful in the future as well if one XAResource fails in commit we can reconnect through the Recoverable and retry.