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

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


      myOA.initOA();

      ORBManager.setORB(myORB);
      ORBManager.setPOA(myOA);
     
      TransactionFactoryImple theOTS = new TransactionFactoryImple();
      Control myControl;
      grid_i localGrid = new grid_i(100, 100);
      int h, w, v;

      myControl = theOTS.create(0);

      if (myControl == null)
      {
    System.err.println("Could not create transaction!");
    System.exit(-1);
View Full Code Here


      System.exit(0);
        }
    }
      }
     
      TransactionFactoryImple factory = OTSImpleManager.factory();
      Control control = null;
     
      // Run ten interations first.

      for (int i = 0; i < 10; i++)
      {
    control = factory.create(0);

    if (doCommit)
        control.get_terminator().commit(true);
    else
        control.get_terminator().rollback();
      }

      // Record the start time.

      Date startTime = new Date();

      // Run 1000 interations.
     
      for (int i = 0; i < iters; i++)
      {
    control = factory.create(0);

    if (doCommit)
        control.get_terminator().commit(true);
    else
        control.get_terminator().rollback();
View Full Code Here

      myOA.initOA();

      ORBManager.setORB(myORB);
      ORBManager.setPOA(myOA);

      TransactionFactoryImple theOTS = new TransactionFactoryImple();

      System.out.println("Creating transaction with 2 second timeout.");
     
      myControl = theOTS.create(2);

      if (myControl == null)
      {
    System.err.println("Could not create transaction!");
    System.exit(-1);
View Full Code Here

        }
        else
        {
          /* force to be local */

          OTSImpleManager._theFactory = new TransactionFactoryImple();
        }
      }

      if (OTSImpleManager._current == null)
      {
View Full Code Here

      throw new INVALID_TRANSACTION(ExceptionCodes.INVALID_ACTION,
          CompletionStatus.COMPLETED_NO);

    _inUse = true;

    TransactionFactoryImple _localFactory = OTSImpleManager.factory();

    try
    {
      ControlImple cont = _localFactory.recreateLocal(ctx);
      CurrentImple current = OTSImpleManager.current();

      /*
       * If this thread is associated with any transactions, then they
       * will be lost in favour of this new hierarchy, unless we have
View Full Code Here

      {
    PropagationContext theContext = org.omg.CosTransactions.PropagationContextHelper.extract(ctx);
     
    if (OTSImpleManager.localFactory())
    {
        TransactionFactoryImple theFactory = OTSImpleManager.factory();

        return new ControlWrapper(theFactory.recreateLocal(theContext));
    }
    else
    {
        TransactionFactory theFactory = OTSImpleManager.get_factory();
       
        return new ControlWrapper(theFactory.recreate(theContext));
    }
      }
      catch (SystemException ex)
      {
    if (jtsLogger.loggerI18N.isWarnEnabled())
View Full Code Here

      {
    PropagationContext theContext = org.omg.CosTransactions.PropagationContextHelper.extract(ctx);

    if (OTSImpleManager.localFactory())
    {
        TransactionFactoryImple theFactory = OTSImpleManager.factory();

        return new ControlWrapper(theFactory.recreateLocal(theContext));
    }
    else
    {
        TransactionFactory theFactory = OTSImpleManager.get_factory();

        return new ControlWrapper(theFactory.recreate(theContext));
    }
      }
      catch (SystemException ex)
      {
    if (jtsLogger.loggerI18N.isWarnEnabled())
View Full Code Here

        }
        else
        {
          /* force to be local */

          OTSImpleManager._theFactory = new TransactionFactoryImple();
        }
      }

      if (OTSImpleManager._current == null)
      {
View Full Code Here

        }
        else
        {
          /* force to be local */

          OTSImpleManager._theFactory = new TransactionFactoryImple();
        }
      }

      if (OTSImpleManager._current == null)
      {
View Full Code Here

      throw new INVALID_TRANSACTION(ExceptionCodes.INVALID_ACTION,
          CompletionStatus.COMPLETED_NO);

    _inUse = true;

    TransactionFactoryImple _localFactory = OTSImpleManager.factory();

    try
    {
      ControlImple cont = _localFactory.recreateLocal(ctx);
      CurrentImple current = OTSImpleManager.current();

      /*
       * If this thread is associated with any transactions, then they
       * will be lost in favour of this new hierarchy, unless we have
View Full Code Here

TOP

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

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.