Package org.jboss.blacktie.jatmibroker.jab

Examples of org.jboss.blacktie.jatmibroker.jab.JABTransaction


   */
  Transaction(JABConnection connection, JABSession session, int timeout)
      throws TransactionException {
    this.connection = connection;
    try {
      this.jabTransaction = new JABTransaction(session, timeout);
    } catch (Throwable e) {
      throw new TransactionException("Could not create the transaction: "
          + e.getMessage(), e);
    }
  }
View Full Code Here


      /*
       * First get the hierarchy from the bottom up.
       */

      java.util.Stack s = new java.util.Stack();
      JABTransaction nextLevel = act.parent();

      s.push(act);

      while (nextLevel != null) {
        s.push(nextLevel);

        nextLevel = nextLevel.parent();
      }

      /*
       * Now push the hierarchy onto the thread stack.
       */
 
View Full Code Here

  public static JABTransaction popAction(String threadId, boolean unregister)
      throws EmptyStackException {
    Stack txs = (Stack) _threadList.get();

    if (txs != null) {
      JABTransaction a = (JABTransaction) txs.pop();

      if ((a != null) && (unregister)) {
        a.removeChildThread(threadId);
      }

      if (txs.size() == 0) {
        _threadList.set(null);
      }
View Full Code Here

    _threadList.set(null);

    if (txs != null) {
      if (unregister) {
        while (!txs.empty()) {
          JABTransaction act = (JABTransaction) txs.pop();

          if (act != null) {
            act.removeChildThread(ThreadUtil.getThreadId(t));
          }
        }
      }
    }
  }
View Full Code Here

    log.debug("resume control");
    if (hasTransactionManager()) {
      Transaction tx = controlToTx(ior);
      tm.resume(tx);
    } else {
      JABTransaction transaction = new JABTransaction(ior);
      JABTransaction.resume(transaction);
    }
  }
View Full Code Here

   */
  public static String getTransactionIOR()
      throws org.omg.CORBA.SystemException, SystemException, Unavailable {
    log.debug("getTransactionIOR");

    JABTransaction curr = JABTransaction.current();
    if (curr != null) {
      log.debug("have JABTransaction");
      return curr.getControlIOR();
    } else if (hasTransaction()) {
      log.debug("have tx mgr");
      Transaction tx = tm.getTransaction();
      log.debug("have arjuna tx");
      TransactionImple atx = (TransactionImple) tx;
View Full Code Here

  public synchronized JABResponse call(String serviceName, JABBuffer toSend,
      Transaction transaction, String bufferType, String bufferSubType)
      throws TransactionException, JABException {
    log.debug("call");

    JABTransaction tx = null;
    if (transaction != null) {
      tx = transaction.getJABTransaction();
    }

    JABServiceInvoker remoteService = new JABServiceInvoker(serviceName,
View Full Code Here

TOP

Related Classes of org.jboss.blacktie.jatmibroker.jab.JABTransaction

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.