Examples of XidImple


Examples of com.arjuna.ats.jta.xa.XidImple

        assertEquals(javax.transaction.Status.STATUS_COMMITTED, tm.getStatus());
    }

    public void testTwoPhaseCommitSyncViaXATerminator() throws Exception
    {
        final Xid xid = new XidImple(new Uid());
        final Transaction t = SubordinationManager.getTransactionImporter().importTransaction(xid);
        final TestSynchronization sync = new TestSynchronization();
        t.registerSynchronization(sync);
        final XATerminator xaTerminator = SubordinationManager.getXATerminator();
        assertEquals(XAResource.XA_RDONLY, xaTerminator.prepare(xid));
View Full Code Here

Examples of com.arjuna.ats.jta.xa.XidImple

        assertEquals(javax.transaction.Status.STATUS_COMMITTED, tm.getStatus());
    }

    public void testTwoPhaseCommitSyncWithXAOKViaXATerminator() throws Exception
    {
        final Xid xid = new XidImple(new Uid());
        final Transaction t = SubordinationManager.getTransactionImporter().importTransaction(xid);
        final TestSynchronization sync = new TestSynchronization();
        t.registerSynchronization(sync);
        final TestXAResource xaResource = new TestXAResource();
        xaResource.setPrepareReturnValue(XAResource.XA_OK);
View Full Code Here

Examples of com.arjuna.ats.jta.xa.XidImple

        assertEquals(javax.transaction.Status.STATUS_ROLLEDBACK, tm.getStatus());
    }

    public void testTwoPhaseCommitSyncWithRollbackOnlyViaXATerminator() throws Exception
    {
        final Xid xid = new XidImple(new Uid());
        final Transaction t = SubordinationManager.getTransactionImporter().importTransaction(xid);
        final TestSynchronization sync = new TestSynchronization();
        t.registerSynchronization(sync);
        t.setRollbackOnly();
        final XATerminator xaTerminator = SubordinationManager.getXATerminator();
View Full Code Here

Examples of com.arjuna.ats.jta.xa.XidImple

    if (_transactionStore == null)
    {
      _transactionStore = TxControl.getStore();
    }

    XidImple theXid = new XidImple(xid);
    Uid u = com.arjuna.ats.internal.arjuna.utils.XATxConverter
        .getUid(theXid.getXID());

    if (!u.equals(Uid.nullUid()))
    {
      try
      {
View Full Code Here

Examples of com.arjuna.ats.jta.xa.XidImple

    Xid xid = baseXid();

    if (xid != null)
      return xid;

    xid = new XidImple(_theTransaction, branch);

    if (theModifier != null)
    {
      try
      {
View Full Code Here

Examples of com.arjuna.ats.jta.xa.XidImple

         XAResource res1 = sess1.getXAResource();
  
         XAResource res2 = sess2.getXAResource();
  
         //Pretend to be a transaction manager by interacting through the XAResources
         Xid xid1 = new XidImple(new Uid("cadaver"), new Uid("bq1"), 666);
         Xid xid2 = new XidImple(new Uid("dalidom"), new Uid("bq2"), 661);   // TODO
  
  
         //    Send a message in each tx
  
         res1.start(xid1, XAResource.TMNOFLAGS);
View Full Code Here

Examples of com.arjuna.ats.jta.xa.XidImple

/* 1706 */     Xid xid = baseXid();
/*      */
/* 1708 */     if (xid != null) {
/* 1709 */       return xid;
/*      */     }
/* 1711 */     xid = new XidImple(this._theTransaction, branch);
/*      */
/* 1713 */     if (theModifier != null)
/*      */     {
/*      */       try
/*      */       {
View Full Code Here

Examples of com.arjuna.ats.jta.xa.XidImple

/*     */
/*  85 */     if (imported == null)
/*     */     {
/*  87 */       imported = new TransactionImple(timeout, xid);
/*     */
/*  89 */       _transactions.put(new XidImple(xid), imported);
/*     */     }
/*     */
/*  92 */     return imported;
/*     */   }
View Full Code Here

Examples of com.arjuna.ats.jta.xa.XidImple

/*     */     throws XAException
/*     */   {
/* 145 */     if (xid == null) {
/* 146 */       throw new IllegalArgumentException();
/*     */     }
/* 148 */     return (TransactionImple)_transactions.get(new XidImple(xid));
/*     */   }
View Full Code Here

Examples of com.arjuna.ats.jta.xa.XidImple

/*     */     throws XAException
/*     */   {
/* 161 */     if (xid == null) {
/* 162 */       throw new IllegalArgumentException();
/*     */     }
/* 164 */     _transactions.remove(new XidImple(xid));
/*     */   }
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.