Package org.omg.CosTransactions

Examples of org.omg.CosTransactions.TransactionFactory


        ORBInterface.initORB(args, null);

        String[] transactionFactoryParams = new String[1];
        transactionFactoryParams[0] = ORBServices.otsKind;

        TransactionFactory transactionFactory = TransactionFactoryHelper.narrow(ORBServices.getService(ORBServices.transactionService, transactionFactoryParams));

        registerService(bindName, ORBInterface.orb().object_to_string(transactionFactory));

        assertReady();
        assertSuccess();
View Full Code Here


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

      TransactionFactory transactionFactory = null;


      String[] transactionFactoryParams = new String[1];
      transactionFactoryParams[0] = ORBServices.otsKind;

      transactionFactory = TransactionFactoryHelper.narrow(ORBServices.getService(ORBServices.transactionService, transactionFactoryParams));


      int numberOfControls = Integer.parseInt(args[args.length - 1]);

      boolean correct = true;
      Control[] controls = new Control[numberOfControls];

      for (int index = 0; correct && (index < controls.length); index++)
      {
        controls[index] = transactionFactory.create(0);

        correct = correct && (controls[index].get_coordinator().get_status() == Status.StatusActive);
      }

      for (int index = 0; correct && (index < controls.length); index++)
View Full Code Here

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

      TransactionFactory transactionFactory = null;


      String[] transactionFactoryParams = new String[1];
      transactionFactoryParams[0] = ORBServices.otsKind;

      transactionFactory = TransactionFactoryHelper.narrow(ORBServices.getService(ORBServices.transactionService, transactionFactoryParams));


      boolean correct = true;
      Control control = transactionFactory.create(0);

      correct = correct && (control.get_coordinator().get_status() == Status.StatusActive);

      control.get_terminator().rollback();
View Full Code Here

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

      TransactionFactory transactionFactory = null;


      String[] transactionFactoryParams = new String[1];
      transactionFactoryParams[0] = ORBServices.otsKind;

      transactionFactory = TransactionFactoryHelper.narrow(ORBServices.getService(ORBServices.transactionService, transactionFactoryParams));


      int numberOfControls = Integer.parseInt(args[args.length - 1]);

      boolean correct = true;
      Control[] controls = new Control[numberOfControls];

      for (int index = 0; correct && (index < controls.length); index++)
      {
        controls[index] = transactionFactory.create(0);

        correct = correct && (controls[index].get_coordinator().get_status() == Status.StatusActive);
      }

      for (int index = 0; correct && (index < controls.length); index++)
View Full Code Here

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

      TransactionFactory transactionFactory = null;


      String[] transactionFactoryParams = new String[1];
      transactionFactoryParams[0] = ORBServices.otsKind;

      transactionFactory = TransactionFactoryHelper.narrow(ORBServices.getService(ORBServices.transactionService, transactionFactoryParams));


      int numberOfControls = Integer.parseInt(args[args.length - 1]);

      boolean correct = true;

      for (int index = 0; correct && (index < numberOfControls); index++)
      {
        Control control = transactionFactory.create(0);

        correct = correct && (control.get_coordinator().get_status() == Status.StatusActive);

        control.get_terminator().commit(false);
      }
View Full Code Here

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

      TransactionFactory transactionFactory = null;


      String[] transactionFactoryParams = new String[1];
      transactionFactoryParams[0] = ORBServices.otsKind;

      transactionFactory = TransactionFactoryHelper.narrow(ORBServices.getService(ORBServices.transactionService, transactionFactoryParams));


      boolean correct;
      Control control = transactionFactory.create(4);

      Thread.sleep(8000);

      try
      {
View Full Code Here

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

      TransactionFactory transactionFactory = null;


      String[] transactionFactoryParams = new String[1];
      transactionFactoryParams[0] = ORBServices.otsKind;
View Full Code Here

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

      TransactionFactory transactionFactory = null;


      String[] transactionFactoryParams = new String[1];
      transactionFactoryParams[0] = ORBServices.otsKind;

      transactionFactory = TransactionFactoryHelper.narrow(ORBServices.getService(ORBServices.transactionService, transactionFactoryParams));


      int numberOfControls = Integer.parseInt(args[args.length - 1]);

      boolean correct = true;
      Control[] controls = new Control[numberOfControls];

      for (int index = 0; correct && (index < controls.length); index++)
      {
        controls[index] = transactionFactory.create(0);

        correct = correct && (controls[index].get_coordinator().get_status() == Status.StatusActive);
      }

      for (int index = 0; correct && (index < controls.length); index++)
View Full Code Here

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

      TransactionFactory transactionFactory = null;


      String[] transactionFactoryParams = new String[1];
      transactionFactoryParams[0] = ORBServices.otsKind;

      transactionFactory = TransactionFactoryHelper.narrow(ORBServices.getService(ORBServices.transactionService, transactionFactoryParams));


      boolean correct;
      Control control = transactionFactory.create(4);

      Thread.sleep(8000);

      try
      {
View Full Code Here

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

      TransactionFactory transactionFactory = null;


      String[] transactionFactoryParams = new String[1];
      transactionFactoryParams[0] = ORBServices.otsKind;

      transactionFactory = TransactionFactoryHelper.narrow(ORBServices.getService(ORBServices.transactionService, transactionFactoryParams));


      boolean correct = true;
      Control control = transactionFactory.create(4);

      Thread.sleep(8000);

      correct = correct && (control.get_coordinator().get_status() == Status.StatusRolledBack);
View Full Code Here

TOP

Related Classes of org.omg.CosTransactions.TransactionFactory

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.