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

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


      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();
      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

      {
    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

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.