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

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


   * @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)// TODO why not doCommit?
//        return doOnePhaseCommit();
    }
    catch (Exception ex)
    {
//      ex.printStackTrace();
View Full Code Here

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

    // TODO error
  }
 
  public void doForget () throws SystemException
  {
    ServerTransaction stx = getTransaction();
   
    try
   
      if (stx != null)
        stx.doForget();
    }
    catch (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();
    }
    catch (Exception ex)
    {
    }
   
View Full Code Here

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

  {
      // https://jira.jboss.org/jira/browse/JBTM-504
     
    try
    {
        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 (Exception ex)
    {
    }
  }
View Full Code Here

      super.duplicateTransactionHandle(coord, term);
    }
    else
    {
      _transactionHandle = new ServerTransaction(actUid, _parentControl,
          parentTran);
      _isWrapper = false;

      super.createTransactionHandle();
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.