Examples of forget()


Examples of javax.transaction.xa.XAResource.forget()

    {
        XAResource xaResource = getXAResource();
        int xaRetVal = XAResource.XA_OK;

        try {
            xaResource.forget(xid);
            if (SanityManager.DEBUG)
            {
                connThread.trace("forgot xa transaction: xaRetVal=" + xaRetVal);
            }
        } catch (XAException xe)
View Full Code Here

Examples of javax.transaction.xa.XAResource.forget()

        Statement s = conn.createStatement();
        s.executeUpdate("CREATE TABLE Derby1016 (I INT)");
        xar.end(xid, XAResource.TMSUCCESS);
        xar.prepare(xid);
        try {
            xar.forget(xid);
            fail("FAIL: prepared XA-Transaction forgotten");
        } catch (XAException XAeForget) {
            assertEquals("FAIL: Got unexpected exception "
                          + XAeForget.getMessage()   + " errorCode: "
                          + XAeForget.errorCode  + "  calling forget on a prepared transaction",
View Full Code Here

Examples of javax.transaction.xa.XAResource.forget()

        xar.prepare(xid);
        xar.commit(xid, false);
        try {
            // since the transaction was committed, it should no longer exist
            // thus, forget should now throw an XAER_NOTA
            xar.forget(xid);
            fail("FAIL: able to forget committed XA-Transaction");
        } catch (XAException XAeForget) {
            assertEquals("FAIL: Got unexpected exception "
                          + XAeForget.getMessage()   + " errorCode: "
                          + XAeForget.errorCode  + "  calling forget on a committed transaction",
View Full Code Here

Examples of javax.transaction.xa.XAResource.forget()

        } catch (XAException e) {
            if (e.errorCode != XAException.XAER_NOTA)
                throw e;
        }
        try {
            xar.forget(xid11);
        } catch (XAException e) {
            if (e.errorCode != XAException.XAER_NOTA)
                throw e;
        }
    }
View Full Code Here

Examples of javax.transaction.xa.XAResource.forget()

         HornetQJMSLogger.LOGGER.debug("Forget " + xaResource + " xid ");
      }

      try
      {
         xaResource.forget(xid);
      }
      catch (XAException e)
      {
         throw check(e);
      }
View Full Code Here

Examples of javax.transaction.xa.XAResource.forget()

   {
      XAResource xaResource = getDelegate(false);
      HornetQXAResourceWrapper.log.debug("Forget " + xaResource + " xid ");
      try
      {
         xaResource.forget(xid);
      }
      catch (XAException e)
      {
         throw check(e);
      }
View Full Code Here

Examples of javax.transaction.xa.XAResource.forget()

               //System.out.println("Xid="+list[i].toString());
               try {
                    xaRes.rollback(list[i]);
               } catch (XAException e) {
                //  System.out.println("Forgetting");
                    xaRes.forget(list[i]);
               }
           }
        } finally {
            if (xaCon != null) {
                xaCon.close();
View Full Code Here

Examples of nexj.core.rpc.ra.tx.MemoryJournal.forget()

     
      //A record that needs to be recovered. (XID1)
      assertEquals(2, recoveredOps.size());
      assertEquals(new JournalRecordTesting(makeXid(1), FileJournalRecordCopyInsert.OPCODE), recoveredOps.get(0));
      assertEquals(new JournalRecordTesting(makeXid(1), JournalRecordPrepared.OPCODE), recoveredOps.get(1));
      recovered.forget(makeXid(1));
     
      //Completed record (XID2) interleaved with record needing recovery (XID3)
      recovered = recoverJournal.recoverJournal(makeXid(3));
      recoveredOps = recovered.getRecords();
      assertEquals(2, recoveredOps.size());
View Full Code Here

Examples of org.apache.derby.iapi.store.access.xa.XAResourceManager.forget()

           
            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.forget()

           
            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(),
                        false);
                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.