Examples of rollback()


Examples of com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionManagerImple.rollback()

         tx.delistResource(res, XAResource.TMSUCCESS);

         tx.delistResource(consumerSess.getXAResource(), XAResource.TMSUCCESS);

         mgr.rollback();

         mgr.begin();

         tx = mgr.getTransaction();
View Full Code Here

Examples of com.arjuna.ats.internal.jta.transaction.arjunacore.jca.XATerminatorImple.rollback()

        final Xid xid = new XidImple(new Uid());
        final TransactionImple tm = TxImporter.importTransaction(xid);
        final TestSynchronization sync = new TestSynchronization();
        tm.registerSynchronization(sync);
        final XATerminator xaTerminator = new XATerminatorImple();
        xaTerminator.rollback(xid);
        assertFalse(sync.isBeforeCompletionDone());
        assertTrue(sync.isAfterCompletionDone());
        assertEquals(javax.transaction.Status.STATUS_ROLLEDBACK, tm.getStatus());
    }
View Full Code Here

Examples of com.arjuna.ats.internal.jta.transaction.jts.TransactionManagerImple.rollback()

            assertTrue("Second resource enlisted", tx.enlistResource(secondResource)) ;
            assertTrue("Third resource enlisted", tx.enlistResource(thirdResource)) ;
        }
        finally
        {
            tm.rollback() ;
        }
    }
}
View Full Code Here

Examples of com.arjuna.ats.internal.jts.orbspecific.CurrentImple.rollback()

    _value = 0;

    current.commit(false);
      }
      else
    current.rollback();
  }
  catch (Exception e)
  {
      System.out.println("AtomicObject "+e);
  }
View Full Code Here

Examples of com.arjuna.ats.internal.jts.orbspecific.coordinator.ArjunaTransactionImple.rollback()

    tx = new ArjunaTransactionImple((Control) null, (ArjunaTransactionImple) null);

    if (doCommit)
        tx.commit(true);
    else
        tx.rollback();
      }

      // Record the start time.

      Date startTime = new Date();
View Full Code Here

Examples of com.arjuna.ats.internal.jts.orbspecific.interposition.coordinator.ServerTransaction.rollback()

  try
  {
      if (!valid())
    theTransaction.doPhase2Abort();
      else
    theTransaction.rollback();
  }
  catch (SystemException e)
  {
      throw e;
  }
View Full Code Here

Examples of com.arjuna.ats.jts.extensions.AtomicTransaction.rollback()

        atomicTransaction.begin();

        explicitObject.tran_rollback_writelock(OTS.current().get_control());

        atomicTransaction.rollback();
      }

      Date end = new Date();

      float operationDuration = ((float) (end.getTime() - start.getTime())) / ((float) numberOfCalls);
View Full Code Here

Examples of com.arjuna.mw.wst.UserTransaction.rollback()

      ut.begin();
      try {
      tm.enlistForDurableTwoPhase(p, p.identifier());
        catch (Exception eouter) {
            try {
                ut.rollback();
            } catch(Exception einner) {
            }
            throw eouter;
        }
View Full Code Here

Examples of com.arjuna.mw.wst11.UserTransaction.rollback()

            ut.begin();
            System.out.println("[CLIENT] invoking makeBooking() on WS");
            client.makeBooking();
            System.out
                    .println("[CLIENT] rolling back Atomic Transaction (This will cause the AT and thus the enlisted back-end resources to rollback)");
            ut.rollback();

            // Check the booking is visible after the transaction has committed.
            Assert.assertEquals(0, client.getBookingCount());

        } finally {
View Full Code Here

Examples of com.arjuna.mw.wstx.UserTransaction.rollback()

  catch (TransactionRolledBackException ex)
  {
      // we should get here
    } catch (Exception eouter) {
        try {
            ut.rollback();
        } catch(Exception einner) {
        }
        throw eouter;
    }
    }
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.