Examples of doCommit()


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

    {
        final SubordinateTransaction tm = createTransaction();
        final TestSynchronization sync = new TestSynchronization();
        tm.registerSynchronization(sync);
        assertEquals(TwoPhaseOutcome.PREPARE_READONLY, tm.doPrepare());
        tm.doCommit();
        assertTrue(sync.isBeforeCompletionDone());
        assertTrue(sync.isAfterCompletionDone());
        assertEquals(javax.transaction.Status.STATUS_COMMITTED, tm.getStatus());
    }
View Full Code Here

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

        tm.registerSynchronization(sync);
        final TestXAResource xaResource = new TestXAResource();
        xaResource.setPrepareReturnValue(XAResource.XA_OK);
        tm.enlistResource(xaResource);
        assertEquals(TwoPhaseOutcome.PREPARE_OK, tm.doPrepare());
        tm.doCommit();
        assertTrue(sync.isBeforeCompletionDone());
        assertTrue(sync.isAfterCompletionDone());
        assertEquals(javax.transaction.Status.STATUS_COMMITTED, tm.getStatus());
    }
View Full Code Here

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

        throw new XAException(XAException.XAER_INVAL);
     
      if (onePhase)
        tx.doOnePhaseCommit();
      else
        tx.doCommit();
     
      TxImporter.removeImportedTransaction(xid);
    }
    catch (XAException ex)
    {
View Full Code Here

Examples of com.arjuna.ats.internal.jta.transaction.jts.subordinate.jca.TransactionImple.doCommit()

        throw new XAException(XAException.XAER_INVAL);
     
      if (onePhase)
        tx.doOnePhaseCommit();
      else
        tx.doCommit();
     
      TxImporter.removeImportedTransaction(xid);
    }
    catch (XAException ex)
    {
View Full Code Here

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

    try
    {
        ServerTransaction stx = getTransaction();
  
            if (stx != null)
                stx.doCommit(true);
    }
    catch (final INVALID_TRANSACTION ex)
    {
        return ActionStatus.INVALID;
    }
View Full Code Here

Examples of com.sun.messaging.jmq.jmsserver.data.handlers.TransactionHandler.doCommit()

                  if ( DEBUG ) {
                            logger.log(Logger.DEBUG,
                                "Committing " + tid + " in state " + ts);
                        }
                        try {
                            thandler.doCommit(tid, xid,
                                new Integer(XAResource.TMNOFLAGS), ts, null,
                            false, con, null);
                        } catch (BrokerException e) {
                            status = Status.ERROR;
                            errMsg = e.getMessage();
View Full Code Here

Examples of com.sun.messaging.jmq.jmsserver.data.handlers.TransactionHandler.doCommit()

      }

      if (rollback)  {
          thandler.doRollback(tid, xid, null, ts, null, null, RollbackReason.ADMIN);
      } else  {
    thandler.doCommit(tid, xid, new Integer(XAResource.TMNOFLAGS), ts, null,
        false, null, null);
      }
  } catch(Exception e)  {
      String opName;
      if (rollback)  {
View Full Code Here

Examples of com.sun.messaging.jmq.jmsserver.data.handlers.TransactionHandler.doCommit()

                  throw new BrokerException(
                  "Transaction XID mismatch "+xid+", expected "+ts.getXid()+" for transaction "+id);
              }
          }

          handler.doCommit(id, xid, xaFlags, ts, conlist, false,con, null);
     }

    /**
     * prepare a transaction.
     * @param id  The TransactionUID to prepare
View Full Code Here

Examples of org.apache.jackrabbit.mk.model.CommitBuilder.doCommit()

                    }
                    default:
                        throw new IllegalArgumentException("jsonDiff: illegal token '" + t.getToken() + "' at pos: " + t.getLastPos());
                }
            }
            Id newHead = cb.doCommit();
            if (!newHead.equals(revId)) {
                // non-empty commit
                if (rep.getCommit(newHead).getBranchRootId() == null) {
                    // OAK-265: only trigger commit gate for non-branch commits
                    gate.commit(newHead.toString());
View Full Code Here

Examples of org.apache.jackrabbit.mk.model.CommitBuilder.doCommit()

        Id revId = trunkRevisionId == null ? getHeadRevisionId() : Id.fromString(trunkRevisionId);

        try {
            CommitBuilder cb = rep.getCommitBuilder(revId, "");
            return cb.doCommit(true).toString();
        } catch (Exception e) {
            throw new MicroKernelException(e);
        }
    }
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.