Examples of RecoveredXid


Examples of nexj.core.rpc.ra.tx.RecoveredXid

      {
         throw new XAException(XAException.XAER_NOTA);
      }

      // allow equals/hashCode to work correctly
      xid = new RecoveredXid(xid);

      if (m_journal.forget(xid))
      {
         m_journal.writeCompletion(xid);
      }
View Full Code Here

Examples of nexj.core.rpc.ra.tx.RecoveredXid

      nTxIdArray[2] = (byte)((nXidNumber >> 8) & 0xff);
      nTxIdArray[3] = (byte)(nXidNumber & 0xff);
     
      Arrays.fill(nBrQArray, (byte)'B');
     
      return new RecoveredXid(nTxIdArray, nBrQArray, 0xcafecafe);
   }
View Full Code Here

Examples of org.jboss.test.jbossts.recovery.RecoveredXid

         log.info("There are " + txInDoubt.length + " xids in doubt");

         for (int k=0; k < txInDoubt.length; k++)
         {
            RecoveredXid xid = convertToRecoveredXid(txInDoubt[k]);
            if (xidsToRecover == null || xidsToRecover.contains(xid))
            {
               try
               {
                  log.info("rollbacking of Xid " + xid);
View Full Code Here

Examples of org.jboss.test.jbossts.recovery.RecoveredXid

      return xids;
   }

   private RecoveredXid convertToRecoveredXid(Xid xid)
   {
      RecoveredXid recoveredXid = new RecoveredXid();

      recoveredXid.setBranchQualifier(xid.getBranchQualifier());
      recoveredXid.setFormatId(xid.getFormatId());
      recoveredXid.setGlobalTransactionId(xid.getGlobalTransactionId());

      return recoveredXid;
   }
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.