Package com.arjuna.ats.internal.jts

Examples of com.arjuna.ats.internal.jts.ControlWrapper


     
      try
      {
    if ((threadId = data.extract_string()) != null)
    {
        ControlWrapper ctx = OTSImpleManager.current().contextManager().popAction(threadId);

        OTSImpleManager.current().contextManager().purgeActions(threadId);
       
        if (ctx != null)
        {
      try
      {
          OTSManager.destroyControl(ctx.getControl());
          ctx = null;
      }
      catch (Exception e)
      {
          if (jtsLogger.loggerI18N.isWarnEnabled())
View Full Code Here


    else
        threadId = ThreadUtil.getThreadId() ;

    if (threadId != null)
    {
        ControlWrapper theControl = OTSImpleManager.current().contextManager().current(threadId);

        if (theControl != null)
        {
      try
      {
          Coordinator theCoordinator = theControl.get_coordinator();

          if (theCoordinator != null)
          {
        stringRef = ORBManager.getORB().orb().object_to_string(theCoordinator);
          }
View Full Code Here

        TransactionReaper reaper = TransactionReaper.transactionReaper();

        if (reaper == null)
          reaper = TransactionReaper.create();

        reaper.insert(new ControlWrapper((ControlImple) tranControl), theTimeout);
      }

      return tranControl;
    }
    catch (OutOfMemoryError e)
View Full Code Here

    if (_synchs != null)
    {
      HashListIterator iterator = new HashListIterator(_synchs);
      SynchronizationRecord value = (SynchronizationRecord) iterator.iterate();
      boolean doSuspend = false;
      ControlWrapper cw = null;

      try
      {
        /*
         * Make sure that this transaction is active on the thread
         * before we invoke any Synchronizations. They are
         * TransactionalObjects and must have the context flowed to
         * them.
         */

        try
        {
          //        cw = OTSImpleManager.systemCurrent().getControlWrapper();

          cw = OTSImpleManager.current().getControlWrapper();

          /*
           * If there's no transaction incoming, then use the one that
           * we got at creation time.
           */

          if ((cw == null) || (!controlHandle.equals(cw.getImple())))
          {
            //      OTSImpleManager.systemCurrent().resumeImple(controlHandle);

            OTSImpleManager.current().resumeImple(controlHandle);

View Full Code Here

    if (_synchs != null)
    {
      HashListIterator iterator = new HashListIterator(_synchs);
      SynchronizationRecord value = (SynchronizationRecord) iterator.iterate();
      ControlWrapper cw = null;
      boolean doSuspend = false;

      try
      {
        //    cw = OTSImpleManager.systemCurrent().getControlWrapper();

        cw = OTSImpleManager.current().getControlWrapper();

        /*
         * If there isn't a transaction context shipped, then use the
         * one we had during creation.
         */

        if ((cw == null) || (!controlHandle.equals(cw.getImple())))
        {
          //        OTSImpleManager.systemCurrent().resumeImple(controlHandle);

          OTSImpleManager.current().resumeImple(controlHandle);

View Full Code Here

    else
        threadId = ThreadUtil.getThreadId() ;
   
    if (threadId != null)
    {
        ControlWrapper theControl = OTSImpleManager.current().contextManager().current(threadId);

        if (theControl != null)
        {
      try
      {
          Coordinator theCoordinator = theControl.get_coordinator();
          PropagationContext ctx = null;
       
          if (theCoordinator != null)
          {
        ctx = theCoordinator.get_txcontext();
View Full Code Here

    else
        threadId = ThreadUtil.getThreadId() ;

    if (threadId != null)
    {
        ControlWrapper theControl = OTSImpleManager.current().contextManager().current(threadId);

        if (theControl != null)
        {
      try
      {
          Coordinator theCoordinator = theControl.get_coordinator();

          if (theCoordinator != null)
          {
        stringRef = ORBManager.getORB().orb().object_to_string(theCoordinator);
          }
View Full Code Here

      try
      {
    if ((threadId = data.extract_string()) != null)
    {
        ControlWrapper ctx = OTSImpleManager.current().contextManager().popAction(threadId);
   
        OTSImpleManager.current().contextManager().purgeActions(threadId);
    }
      }
      catch (BAD_OPERATION bex)
View Full Code Here

       */

      try
      {
        AtomicTransaction tx = (AtomicTransaction) obj;
        ControlWrapper txControl = tx._theAction;

        if ((_theAction == null) && (txControl == null))
          return true;
        else
          return _theAction.equals(txControl);
View Full Code Here

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

    try
    {
      ControlWrapper currentTransaction = current.getControlWrapper();

      if (currentTransaction == null)
      {
        if (jtsLogger.loggerI18N.isWarnEnabled())
        {
          jtsLogger.loggerI18N.warn("com.arjuna.ats.jts.extensions.atnovalidtx", new Object[]
          { "AtomicTransaction.validTransaction" });
        }

        return false;
      }

      valid = _theAction.equals(currentTransaction);

      if (!valid)
      {
        String transactionName = get_transaction_name();
        String currentTransactionName = currentTransaction.get_transaction_name();

        if (jtsLogger.loggerI18N.isWarnEnabled())
        {
          jtsLogger.loggerI18N.warn("com.arjuna.ats.jts.extensions.atoutofseq", new Object[]
          { "AtomicTransaction", transactionName });
View Full Code Here

TOP

Related Classes of com.arjuna.ats.internal.jts.ControlWrapper

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.