Examples of XidImple


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

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

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

     
      boolean haveXid = os.unpackBoolean();

      if (haveXid)
      {
        _theXid = new XidImple();
       
        _theXid.unpackFrom(os);
      }
     
      return super.restore_state(os, ot);
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

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

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

  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

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

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

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

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

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

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

  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
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.