Package org.omg.CosTransactions

Examples of org.omg.CosTransactions.Current


      ORBInterface.initORB(args, null);
      OAInterface.initOA();

      boolean correct = true;

      Current current = OTS.get_current();

      current.begin();
      current.commit(false);

      correct = (current.get_status() == Status.StatusNoTransaction);

      if (correct)
      {
        System.out.println("Passed");
      }
View Full Code Here


      boolean correct = true;

      int numberOfControls = 1000;

      Current current = OTS.get_current();

      String[] transactionNames = new String[numberOfControls];
      Control[] controls = new Control[numberOfControls];
      for (int index = 0; index < numberOfControls; index++)
      {
        current.begin();
        transactionNames[index] = current.get_transaction_name();
        controls[index] = current.suspend();
      }

      for (int index = 0; index < numberOfControls; index++)
      {
        current.resume(controls[index]);
        correct = correct && transactionNames[index].equals(current.get_transaction_name());
        current.commit(true);
      }

      if (correct)
      {
        System.out.println("Passed");
View Full Code Here

      ORBInterface.initORB(args, null);
      OAInterface.initOA();

      boolean correct = true;

      Current current = OTS.get_current();

      try
      {
        current.rollback();
        correct = false;
      }
      catch (NoTransaction noTransaction)
      {
      }
View Full Code Here

      ORBInterface.initORB(args, null);
      OAInterface.initOA();

      boolean correct = true;

      Current current = OTS.get_current();

      current.begin();
      correct = (current.get_status() == Status.StatusActive);
      current.commit(true);

      if (correct)
      {
        System.out.println("Passed");
      }
View Full Code Here

      ORBInterface.initORB(args, null);
      OAInterface.initOA();

      boolean correct = true;

      Current current = OTS.get_current();

      try
      {
        current.resume(null);
      }
      catch (InvalidControl invalidControl)
      {
        correct = false;
      }
View Full Code Here

      ORBInterface.initORB(args, null);
      OAInterface.initOA();

      boolean correct = true;

      Current current = OTS.get_current();

      current.begin();
      Control control = current.get_control();
      current.commit(true);

      try
      {
        current.resume(control);
      }
      catch (InvalidControl invalidControl)
      {
        System.err.println("Failed to resume committed transaction!");
        correct = false;
View Full Code Here

      ORBInterface.initORB(args, null);
      OAInterface.initOA();

      boolean correct = true;

      Current current = OTS.get_current();

      current.begin();
      current.rollback();

      Control control = current.suspend();

      correct = (control == null);

      if (correct)
      {
View Full Code Here

      ORBInterface.initORB(args, null);
      OAInterface.initOA();

      boolean correct = true;

      Current current = OTS.get_current();

      current.begin();
      current.commit(true);

      correct = (current.get_status() == Status.StatusNoTransaction);

      if (correct)
      {
        System.out.println("Passed");
      }
View Full Code Here

      ORBInterface.initORB(args, null);
      OAInterface.initOA();

      boolean correct = true;

      Current current = OTS.get_current();

      correct = (current.get_status() == Status.StatusNoTransaction);

      if (correct)
      {
        System.out.println("Passed");
      }
View Full Code Here

      boolean correct = true;

      int numberOfTransactionNames = 1000;

      Current current = OTS.get_current();

      String[] transactionNames = new String[numberOfTransactionNames];
      for (int index = 0; index < numberOfTransactionNames; index++)
      {
        current.begin();
        transactionNames[index] = current.get_transaction_name();
        current.commit(false);
      }

      for (int index1 = 0; index1 < numberOfTransactionNames - 1; index1++)
      {
        for (int index2 = index1 + 1; index2 < numberOfTransactionNames; index2++)
View Full Code Here

TOP

Related Classes of org.omg.CosTransactions.Current

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.