Package com.arjuna.ats.internal.jta.transaction.jts

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


    // in that construct.
    //
    // This hack method does that job to workaround that bug
    private void hackJTS(final SubordinateTransaction subordinateTransaction) {
        if (subordinateTransaction instanceof TransactionImple) {
            final TransactionImple txImple = (TransactionImple) subordinateTransaction;
            final ControlWrapper controlWrapper = txImple.getControlWrapper();
            if (controlWrapper == null) {
                return;
            }
            final ControlImple controlImple = controlWrapper.getImple();
            if (controlImple == null) {
View Full Code Here


   */
  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

      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

   */
  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

   */
  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

      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

   */
  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

      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

    {
      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

TOP

Related Classes of com.arjuna.ats.internal.jta.transaction.jts.TransactionImple

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.