Examples of XidImple


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

/*     */
/*     */   public SubordinateAtomicAction(int timeout, Xid xid)
/*     */   {
/*  67 */     super(timeout);
/*     */
/*  69 */     this._theXid = new XidImple(xid);
/*     */   }
View Full Code Here

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

/*     */     {
/* 120 */       boolean haveXid = os.unpackBoolean();
/*     */
/* 122 */       if (haveXid)
/*     */       {
/* 124 */         this._theXid = new XidImple();
/*     */
/* 126 */         ((XidImple)this._theXid).unpackFrom(os);
/*     */       }
/*     */     }
/*     */     catch (IOException ex)
View Full Code Here

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

    if (ExampleXAResource.toRecover == null)
    {
      AtomicAction a = new AtomicAction();

      ExampleXAResource.toRecover = new XidImple(new AtomicAction());
    }

    xids[0] = ExampleXAResource.toRecover;
    xids[1] = new XidImple(new AtomicAction());

    return xids;
  }
View Full Code Here

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

    {
      xids = new Xid[2];

      AtomicAction a = new AtomicAction();

      xids[0] = new XidImple(a);

      byte[] c = com.arjuna.ats.arjuna.coordinator.TxControl.getXANodeName();

      byte[] b = new byte[1];

      b[0] = 'c';

      com.arjuna.ats.arjuna.coordinator.TxControl.setXANodeName(b);

      xids[1] = new XidImple(new Uid());

      com.arjuna.ats.arjuna.coordinator.TxControl.setXANodeName(c);
    }
  }
View Full Code Here

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

    xaRecoveryNodes.add(bogusNodeName.stringForm());

    System.err.println("Bogus XA node name: " + bogusNodeName);

    XidImple xid = new XidImple(new Uid());
    String nodeName = XAUtils.getXANodeName(xid);

    // should fail.

    System.err.println("XA node name: " + nodeName);
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

         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

    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

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

    public void testOnePhaseCommitSyncViaXATerminator() 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();
        xaTerminator.commit(xid, true);
View Full Code Here

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

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

    public void testOnePhaseCommitSyncWithRollbackOnlyViaXATerminator() 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
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.