Examples of TransactionImple


Examples of com.arjuna.ats.internal.jta.transaction.jts.TransactionImple

   */
  private static Transaction controlToTx(String ior) {
    log.trace("controlToTx: ior: " + ior);

    ControlWrapper cw = createControlWrapper(ior);
    TransactionImple tx = (TransactionImple) TransactionImple
        .getTransactions().get(cw.get_uid());

    if (tx == null) {
      log.trace("controlToTx: creating a new tx - wrapper: " + cw);
      tx = new JtsTransactionImple(cw);
View Full Code Here

Examples of com.arjuna.ats.internal.jta.transaction.jts.TransactionImple

      throw new RuntimeException("UNEXPECTED CODE BRANCH IN THE HACK");
    } else if (hasTransaction()) {
      log.debug("have tx mgr");
      Transaction tx = tm.getTransaction();
      log.debug("have arjuna tx");
      TransactionImple atx = (TransactionImple) tx;
      ControlWrapper cw = atx.getControlWrapper();
      log.debug("lookup control");
      Control c = cw.get_control();
      String ior = ORBManager.getORB().orb().object_to_string(c);
      log.debug("getTransactionIOR: ior: " + ior);
      return ior;
View Full Code Here

Examples of com.arjuna.ats.internal.jta.transaction.jts.TransactionImple

   */
  private static Transaction controlToTx(String ior) {
    log.debug("controlToTx: ior: " + ior);

    ControlWrapper cw = createControlWrapper(ior);
    TransactionImple tx = (TransactionImple) TransactionImple
        .getTransactions().get(cw.get_uid());

    if (tx == null) {
      log.debug("controlToTx: creating a new tx - wrapper: " + cw);
      tx = new JtsTransactionImple(cw);
View Full Code Here

Examples of com.arjuna.ats.internal.jta.transaction.jts.TransactionImple

      return curr.getControlIOR();
    } else if (hasTransaction()) {
      log.debug("have tx mgr");
      Transaction tx = tm.getTransaction();
      log.debug("have arjuna tx");
      TransactionImple atx = (TransactionImple) tx;
      ControlWrapper cw = atx.getControlWrapper();
      log.debug("lookup control");
      Control c = cw.get_control();
      String ior = ORBManager.getORB().orb().object_to_string(c);
      log.debug("getTransactionIOR: ior: " + ior);
      return ior;
View Full Code Here

Examples of com.arjuna.ats.internal.jta.transaction.jts.TransactionImple

    {
      UserTransaction ut = com.arjuna.ats.jta.UserTransaction.userTransaction();

      ut.begin();

      TransactionImple txImple = (TransactionImple) TransactionManager.transactionManager().getTransaction();

      txImple.enlistResource(new Resource01(crashIn, resultsFile));
      txImple.enlistResource(new Resource02());

      ut.commit();
      System.out.println("Passed");
    }
    catch (javax.transaction.RollbackException rbx)
View Full Code Here

Examples of com.arjuna.ats.internal.jta.transaction.jts.subordinate.jca.TransactionImple

   
    /*
     * Check to see if we haven't already imported this thing.
     */
   
    TransactionImple imported = getImportedTransaction(xid);
   
    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.internal.jta.transaction.jts.subordinate.jca.TransactionImple

  public static TransactionImple recoverTransaction (Uid actId) throws XAException
  {
    if (actId == null)
      throw new IllegalArgumentException();
   
    TransactionImple recovered = new TransactionImple(actId);
    TransactionImple tx = (TransactionImple) _transactions.get(recovered.baseXid());

    if (tx == null)
    {
      recovered.recordTransaction();
View Full Code Here

Examples of com.arjuna.ats.internal.jta.transaction.jts.subordinate.jca.TransactionImple

  public void commit (Xid xid, boolean onePhase) throws XAException
  {
    try
    {
      TransactionImple tx = TxImporter.getImportedTransaction(xid);
     
      if (tx == null)
        throw new XAException(XAException.XAER_INVAL);
     
      if (onePhase)
        tx.doOnePhaseCommit();
      else
        tx.doCommit();
     
      TxImporter.removeImportedTransaction(xid);
    }
    catch (XAException ex)
    {
View Full Code Here

Examples of com.arjuna.ats.internal.jta.transaction.jts.subordinate.jca.TransactionImple

 
  public void forget (Xid xid) throws XAException
  {
    try
    {
      TransactionImple tx = TxImporter.getImportedTransaction(xid);
     
      if (tx == null)
        throw new XAException(XAException.XAER_INVAL);
     
      tx.doForget();
    }
    catch (Exception ex)
    {
      throw new XAException(XAException.XAER_RMERR);
    }
View Full Code Here

Examples of com.arjuna.ats.internal.jta.transaction.jts.subordinate.jca.TransactionImple

 
  public int prepare (Xid xid) throws XAException
  {
    try
    {
      TransactionImple tx = TxImporter.getImportedTransaction(xid);
     
      if (tx == null)
        throw new XAException(XAException.XAER_INVAL);
     
      switch (tx.doPrepare())
      {
      case TwoPhaseOutcome.PREPARE_READONLY:
        TxImporter.removeImportedTransaction(xid);
       
        return XAResource.XA_RDONLY;       
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.