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


   
    public void terminate ()
    {
  try
  {
      CurrentImple current = OTSImpleManager.current();

      if (current != null)
      {
    Control c = current.suspend();

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

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

    if (current != null)
    {
        current.resume(_currentControl);
        current = null;
    }
      }
      catch (Exception e)
      {
View Full Code Here

   
    protected OTSThread ()
    {
  try
  {
      CurrentImple current = OTSImpleManager.current();

      if (current != null)
      {
    _currentControl = current.get_control();
    current = 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

   * 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

   * 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

   * 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

   * 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

    }

    public static final synchronized int tx_begin ()
    {
  int toReturn = tx.TX_OK;
  CurrentImple current = OTSImpleManager.current();

  if (!__tx_allow_nesting)
  {
      /*
       * Already have a transaction?
       */

      try
      {
    Control control = current.get_control();

    if (control != null)
    {
        /*
         * Have a transaction already, and not allowed to
         * create nested transactions!
         */

        toReturn = tx.TX_PROTOCOL_ERROR;
        control = null;
    }
      }
      catch (Exception e)
      {
    // something went wrong!
   
    toReturn = tx.TX_FAIL;
      }
  }

  if (toReturn == tx.TX_OK)
  {
      try
      {
    current.begin();
      }
      catch (Exception e)
      {
    toReturn = tx.TX_FAIL;
      }
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.