Package com.arjuna.ats.jta.xa

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


  {
    super(actUid, null);
   
    // convert to internal format (makes saving/restoring easier)
   
    _theXid = new XidImple(xid);
  }
View Full Code Here

     
      boolean haveXid = os.unpackBoolean();

      if (haveXid)
      {
        _theXid = new XidImple();
       
        _theXid.unpackFrom(os);
      }
     
      return super.restore_state(os, ot);
View Full Code Here

    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

    Xid xid = baseXid();

    if (xid != null)
      return xid;

    xid = new XidImple(_theTransaction, branch);

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

   
    if (imported == null)
    { 
      imported = new TransactionImple(timeout, xid);
     
      _transactions.put(new XidImple(xid), imported);
    }
   
    return imported;
  }
View Full Code Here

  public static TransactionImple getImportedTransaction (Xid xid) throws XAException
  {
    if (xid == null)
      throw new IllegalArgumentException();
   
    return (TransactionImple) _transactions.get(new XidImple(xid));
  }
View Full Code Here

  public static void removeImportedTransaction (Xid xid) throws XAException
  {
    if (xid == null)
      throw new IllegalArgumentException();

    _transactions.remove(new XidImple(xid));
  }
View Full Code Here

   
    if (imported == null)
    { 
      imported = new TransactionImple(timeout, xid);
     
      _transactions.put(new XidImple(xid), imported);
    }
   
    return imported;
  }
View Full Code Here

  public static TransactionImple getImportedTransaction (Xid xid) throws XAException
  {
    if (xid == null)
      throw new IllegalArgumentException();
   
    return (TransactionImple) _transactions.get(new XidImple(xid));
  }
View Full Code Here

TOP

Related Classes of com.arjuna.ats.jta.xa.XidImple

Copyright © 2018 www.massapicom. 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.