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

Examples of com.arjuna.ats.internal.jts.orbspecific.CurrentImple


   * thread may not be the same one which does the work, so we
   * cannot do thread association at the interceptor level. We must
   * do it when the invoked method actually gets called.
   */

  CurrentImple curr = OTSImpleManager.current();

  /*
   * Probably separate the underlying work out so that we can
   * call that directly. No real harm at present since the hard
   * work represents most of the overhead and has to be done
   * anyway.
   */

  curr.contextManager().associate();
    }
View Full Code Here


  if (_originalTransaction != null)
  {
      throw new INVALID_TRANSACTION();
  }

  CurrentImple current = OTSImpleManager.current();

  _originalTransaction = current.suspend();

  if (jtsLogger.logger.isDebugEnabled())
  {
      jtsLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC,
                 com.arjuna.ats.jts.logging.FacilityCode.FAC_OTS, "TopLevelTransaction::begin - suspend transaction "+_originalTransaction);
View Full Code Here

  try
  {
      if (_originalTransaction != null)
      {
    CurrentImple current = OTSImpleManager.current();

    current.resume(_originalTransaction);

    _originalTransaction = null;
      }
  }
  catch (Exception e)
View Full Code Here

   * thread may not be the same one which does the work, so we
   * cannot do thread association at the interceptor level. We must
   * do it when the invoked method actually gets called.
   */

  CurrentImple curr = OTSImpleManager.current();

  /*
   * Probably separate the underlying work out so that we can
   * call that directly. No real harm at present since the hard
   * work represents most of the overhead and has to be done
   * anyway.
   */

  curr.contextManager().associate();
    }
View Full Code Here

      jtsLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, com.arjuna.ats.jts.logging.FacilityCode.FAC_OTS, "AtomicTransaction::begin ()");
    }

    // already begun?

    CurrentImple current = OTSImpleManager.current();

    synchronized (_theStatus)
    {
      if (_theAction != null)
      {
        throw new INVALID_TRANSACTION(ExceptionCodes.ALREADY_BEGUN,
            CompletionStatus.COMPLETED_NO);
      }

            current.begin();

      _theAction = current.getControlWrapper();
    }

    _theStatus = current.get_status();

    if (jtsLogger.logger.isDebugEnabled())
    {
      jtsLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, com.arjuna.ats.jts.logging.FacilityCode.FAC_OTS, "AtomicTransaction::begin create "
          + _theAction);
View Full Code Here

     * OK to use current since we have just guaranteed that the transaction
     * is the same as current. Use current rather than saved control since
     * it will do thread tracking for us.
     */

    CurrentImple current = OTSImpleManager.current();

    /*
     * Release our handle first, since current is about to destroy the
     * action control.
     */

    try
    {
      current.commit(report_heuristics);

      _theStatus = Status.StatusCommitted;
    }
    catch (NoTransaction e)
    {
View Full Code Here

     * OK to use current since we have just guaranteed that the transaction
     * is the same as current. Use current rather than saved control since
     * it will do thread tracking for us.
     */

    CurrentImple current = OTSImpleManager.current();

    try
    {
      current.rollback();

      _theStatus = Status.StatusRolledBack;
    }
    catch (NoTransaction e)
    {
View Full Code Here

    {
      jtsLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, com.arjuna.ats.jts.logging.FacilityCode.FAC_OTS, "AtomicTransaction::set_timeout ( "
          + seconds + " )");
    }

    CurrentImple current = OTSImpleManager.current();

    if (current != null)
      current.set_timeout(seconds);
    else
      throw new UNKNOWN();
  }
View Full Code Here

   *         thread.
   */

  public int get_timeout () throws SystemException
  {
    CurrentImple current = OTSImpleManager.current();

    if (current != null)
    {
      int val = current.get_timeout();

      if (jtsLogger.logger.isDebugEnabled())
      {
        jtsLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, com.arjuna.ats.jts.logging.FacilityCode.FAC_OTS, "AtomicTransaction::get_timeout returning "
            + val);
View Full Code Here

    /*
     * If we get here then _theAction is not null.
     */

    CurrentImple current = OTSImpleManager.current();
    boolean valid = false;

    try
    {
      ControlWrapper currentTransaction = current.getControlWrapper();

      if (currentTransaction == null)
      {
        if (jtsLogger.loggerI18N.isWarnEnabled())
        {
View Full Code Here

TOP

Related Classes of com.arjuna.ats.internal.jts.orbspecific.CurrentImple

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.