Package com.arjuna.ats.internal.jts.orbspecific.interposition.coordinator

Examples of com.arjuna.ats.internal.jts.orbspecific.interposition.coordinator.ServerTransaction


  {
      destroyResource();
      return;
  }

  ServerTransaction theTransaction = (ServerTransaction) _theControl.getImplHandle();

  if (theTransaction == null)
  {
      if (jtsLogger.loggerI18N.isWarnEnabled())
      {
    jtsLogger.loggerI18N.warn("com.arjuna.ats.internal.jts.orbspecific.interposition.resources.arjuna.notx",
            new Object[] {"ServerTopLevelAction.commit_one_phase"});
      }

      throw new INVALID_TRANSACTION(ExceptionCodes.NO_TRANSACTION, CompletionStatus.COMPLETED_NO);
  }

  //  ThreadActionData.pushAction(theTransaction);

  try
  {
      /*
       * This will commit and do any before/after_completion calls
       * on registered synchronizations.
       */

      theTransaction.doCommit(true);
  }
  catch (HeuristicHazard e1)
  {
      /*
       * Is a heuristic, then don't remove the
View Full Code Here


    RecoveryCoordinator recoveryCoord = theCoordinator.register_resource(_resourceRef);

    if (!_theControl.isWrapper())
    {
        ServerTransaction tx = (ServerTransaction) _theControl.getImplHandle();

        if (tx != null)
        {
      tx.setRecoveryCoordinator(recoveryCoord);

      result = true;
        }
        else
      result = false;
View Full Code Here

   * @throws SystemException
   */
 
  public int doPrepare () throws SystemException
  {
    ServerTransaction stx = getTransaction();
   
    // TODO make sure synchronizations go off
    // require registration of synchronization interposed resource as well!
   
    if (stx != null)
                    return stx.doPrepare();
            else
                    return TwoPhaseOutcome.INVALID_TRANSACTION;
  }
View Full Code Here

   * @throws SystemException
   */
 
  public int doCommit () throws SystemException
 
    ServerTransaction stx = getTransaction();
    int outcome = ActionStatus.INVALID;
   
    try
    {
        if (stx != null)
                        return stx.doPhase2Commit();
    }
    catch (final Exception ex)
    {
        ex.printStackTrace();
    }
View Full Code Here

   * @throws SystemException
   */
 
  public int doRollback () throws SystemException
  {
    ServerTransaction stx = getTransaction();
    int outcome = ActionStatus.INVALID;
   
    try
   
        if (stx != null)
                        return stx.doPhase2Abort();
    }
    catch (final Exception ex)
    {
        ex.printStackTrace();
    }
View Full Code Here

     
      try
      {
          // TODO check if we should be using TxControl.isBeforeCompletionWhenRollbackOnly in local JTA too.
         
          ServerTransaction stx = getTransaction();

          if (stx != null)
              stx.doCommit(true);
      }
      catch (final INVALID_TRANSACTION ex)
      {
          return ActionStatus.INVALID;
      }
View Full Code Here

      return ActionStatus.COMMITTED;
  }
 
  public void doForget () throws SystemException
  {
    ServerTransaction stx = getTransaction();
   
    try
   
      if (stx != null)
        stx.doForget();
    }
    catch (final Exception ex)
    {
        ex.printStackTrace();
    }
View Full Code Here

    }
  }
 
  public boolean doBeforeCompletion () throws SystemException
  {
      ServerTransaction stx = getTransaction();
     
      try
      {
          if (stx != null)
          {
              stx.doBeforeCompletion();
             
              return true;
          }
      }
      catch (final Exception ex)
View Full Code Here

   * @throws SystemException
   */
 
  public int doPrepare () throws SystemException
  {
    ServerTransaction stx = getTransaction();
   
    // TODO make sure synchronizations go off
    // require registration of synchronization interposed resource as well!
   
    if (stx != null)
      return stx.doPrepare();
    else
      return TwoPhaseOutcome.INVALID_TRANSACTION;
  }
View Full Code Here

   * @throws SystemException
   */
 
  public int doCommit () throws SystemException
 
    ServerTransaction stx = getTransaction();
   
    try
    {
      if (stx != null)
        return stx.doPhase2Commit(false);
    }
    catch (Exception ex)
    {
    }
   
View Full Code Here

TOP

Related Classes of com.arjuna.ats.internal.jts.orbspecific.interposition.coordinator.ServerTransaction

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.