Examples of recover()


Examples of bitronix.tm.mock.resource.MockXAResource.recover()

        Connection connection = pds.getConnection();
        PooledConnectionProxy handle = (PooledConnectionProxy) connection;
        XAResource xaResource = handle.getPooledConnection().getXAResource();
        connection.close();

        assertEquals(0, xaResource.recover(XAResource.TMSTARTRSCAN | XAResource.TMENDRSCAN).length);
        assertEquals(0, TransactionManagerServices.getJournal().collectDanglingRecords().size());

        pds.close();

        TransactionManagerServices.getTransactionManager().shutdown();
View Full Code Here

Examples of com.alibaba.druid.pool.xa.JtdsXAResource.recover()

            } catch (Exception ex) {
                error = ex;
            }
            Assert.assertNotNull(error);
        }
        xaResource.recover(0);
        {
            Exception error = null;
            try {
                xaResource.prepare(null);
            } catch (Exception ex) {
View Full Code Here

Examples of com.arjuna.ats.internal.jta.transaction.arjunacore.jca.SubordinateTransaction.recover()

    {
      /*
       * Try recovery again. If it fails we'll throw a RETRY to the caller who
       * should try again later.
       */
            tx.recover();

      return tx;
    }
    else
      return tx;
View Full Code Here

Examples of com.arjuna.ats.internal.jta.transaction.arjunacore.subordinate.jca.TransactionImple.recover()

    if (tx == null)
      return null;

    if (!tx.activated())
    {
      tx.recover();

      return tx;
    }
    else
      return tx;
View Full Code Here

Examples of com.arjuna.ats.jta.recovery.XARecoveryResource.recover()

/*  451 */                 if (jtaLogger.logger.isDebugEnabled())
/*      */                 {
/*  453 */                   jtaLogger.logger.debug(16L, 4L, 2048L, "XARecovery attempting recovery of " + theUid);
/*      */                 }
/*      */
/*  461 */                 int recoveryStatus = record.recover();
/*      */
/*  463 */                 if (recoveryStatus != 1)
/*      */                 {
/*  465 */                   if (recoveryStatus == 3)
/*      */                   {
View Full Code Here

Examples of com.atomikos.datasource.RecoverableResource.recover()

        // will incorrectly rollback

        while ( resources.hasMoreElements () ) {
            RecoverableResource res = (RecoverableResource) resources
                    .nextElement ();
            if ( res.recover ( this ) ) {
                recovered = true;
                // FOLLOWING CODE REMOVED: xid needs to be saved and read
                // from external stream, or the previous recover call will fail
                // with
                // null exception!
View Full Code Here

Examples of com.atomikos.icatch.Participant.recover()

        Iterator parts = getSnapshotIteratorOfCurrentParticipants();
        while ( parts.hasNext () ) {
            Participant next = (Participant) parts.next ();
            boolean recoveredParticipant = false;
            try {
                recoveredParticipant = next.recover ();
                printMsg ( "coordinator: " + getCoordinatorId ()
                        + "recovered participant: " + next, Console.DEBUG );
            } catch ( Exception e ) {
                // happens if XA connection could not be gotten
                // or other problems
View Full Code Here

Examples of com.sleepycat.je.XAEnvironment.recover()

    // xid1 has already been registered.
      }
      xaEnv.prepare(xid2);

      XAEnvironment xaEnv2 = xaEnv;
      Xid[] unfinishedXAXids = xaEnv2.recover(0);
      assertTrue(unfinishedXAXids.length == 2);
      boolean sawXid1 = false;
      boolean sawXid2 = false;
      for (int i = 0; i < 2; i++) {
    if (unfinishedXAXids[i].equals(xid1)) {
View Full Code Here

Examples of com.sleepycat.je.recovery.RecoveryManager.recover()

                 * is disabled until recovery is finished.
                 */
                try {
                    RecoveryManager recoveryManager =
                        new RecoveryManager(this);
                    lastRecoveryInfo = recoveryManager.recover(isReadOnly);

                    postRecoveryConversion();
                } finally {
                    try {

View Full Code Here

Examples of com.sun.jini.reliableLog.ReliableLog.recover()

      throw e;
        }
    }
    ActLogHandler handler = new ActLogHandler();
    ReliableLog log = new ReliableLog(logName, handler);
    log.recover();
    Activation state = handler.getState();
    if (state == null) {
        log.snapshot();
        state = handler.getState();
    }
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.