Package org.apache.derby.iapi.store.access.xa

Examples of org.apache.derby.iapi.store.access.xa.XAResourceManager


    XAXactId xid_im = new XAXactId(xid);

    XATransactionState tranState = getTransactionState(xid_im);

    if (tranState == null) {
      XAResourceManager rm = ra.getXAResourceManager();

      ContextManager inDoubtCM = rm.find(xid);

      // RM also does not know about this xid.
      if (inDoubtCM == null)
        throw new XAException(XAException.XAER_NOTA);

      ContextService csf = ContextService.getFactory();

      csf.setCurrentContextManager(inDoubtCM);
      try
      {
        rm.rollback(inDoubtCM, xid_im);

        // close the connection/transaction since it can never be used again.
        inDoubtCM.cleanupOnError(StandardException.closeException());
        return;
      }
View Full Code Here


    // ensure immtable and correct equals method.
    XAXactId xid_im = new XAXactId(xid);

    XATransactionState tranState = getTransactionState(xid_im);
    if (tranState == null) {
      XAResourceManager rm = ra.getXAResourceManager();

      ContextManager inDoubtCM = rm.find(xid);

      // RM also does not know about this xid.
      if (inDoubtCM == null)
        throw new XAException(XAException.XAER_NOTA);

      ContextService csf = ContextService.getFactory();

      csf.setCurrentContextManager(inDoubtCM);
      try
      {
        rm.forget(inDoubtCM, xid_im);

        // close the connection/transaction since it can never be used again.
        inDoubtCM.cleanupOnError(StandardException.closeException());
        return;
      }
View Full Code Here

TOP

Related Classes of org.apache.derby.iapi.store.access.xa.XAResourceManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.