Examples of XAResourceManager


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);
           
View Full Code Here

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

        // 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;
            } catch (StandardException se) {
View Full Code Here

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;
            } catch (StandardException se) {
View Full Code Here

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);
View Full Code Here

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

    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.commit(inDoubtCM, xid_im, onePhase);

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

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

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

    // 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

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);
View Full Code Here

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

    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.commit(inDoubtCM, xid_im, onePhase);

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

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
TOP
Copyright © 2018 www.massapi.com. 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.