Examples of TransactionImple


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

    SubordinateTransaction 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.arjunacore.subordinate.jca.TransactionImple

      throws XAException
  {
    if (actId == null)
      throw new IllegalArgumentException();

    TransactionImple recovered = new TransactionImple(actId);

    /*
     * Is the transaction already in the list? This may be the case because
     * we scan the object store periodically and may get Uids to recover for
     * transactions that are progressing normally, i.e., do not need
     * recovery. In which case, we need to ignore them.
     */

    TransactionImple tx = (TransactionImple) _transactions.get(recovered
        .baseXid());

    if (tx == null)
    {
      _transactions.put(recovered.baseXid(), recovered);
View Full Code Here

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

public class SubordinateTestCase extends TestCase
{
    // This test class is subclassed by the JTAX version of the tests, so we isolate
    // the module specific tx creation code to this function, which then gets overridden.
    public SubordinateTransaction createTransaction() {
        return new TransactionImple(0); // implicit begin
    }
View Full Code Here

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

/*     */   {
/*  76 */     if (xid == null) {
/*  77 */       throw new IllegalArgumentException();
/*     */     }
/*     */
/*  83 */     TransactionImple imported = getImportedTransaction(xid);
/*     */
/*  85 */     if (imported == null)
/*     */     {
/*  87 */       imported = new TransactionImple(timeout, xid);
/*     */
/*  89 */       _transactions.put(new XidImple(xid), imported);
/*     */     }
/*     */
/*  92 */     return imported;
View Full Code Here

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

/*     */     throws XAException
/*     */   {
/* 105 */     if (actId == null) {
/* 106 */       throw new IllegalArgumentException();
/*     */     }
/* 108 */     TransactionImple recovered = new TransactionImple(actId);
/*     */
/* 117 */     TransactionImple tx = (TransactionImple)_transactions.get(recovered.baseXid());
/*     */
/* 119 */     if (tx == null)
/*     */     {
/* 121 */       _transactions.put(recovered.baseXid(), recovered);
/*     */
View Full Code Here

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

public class SubordinateTestCase extends TestCase
{
    // This test class is subclassed by the JTAX version of the tests, so we isolate
    // the module specific tx creation code to this function, which then gets overridden.
    public SubordinateTransaction createTransaction() {
        return new TransactionImple(0); // implicit begin
    }
View Full Code Here

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

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

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