Package com.arjuna.orbportability

Examples of com.arjuna.orbportability.Services


      /** Initialise ORB and OA **/
      testORB.initORB(args, null);
      testOA.initPOA(args);

      /** Create services object **/
      Services testServ = new Services(testORB);

      String[] params = new String[1];
      params[0] = com.arjuna.orbportability.Services.otsKind;

      SimpleObjectImpl servant = new com.hp.mwtests.orbportability.orbspecific.orbinstance.SimpleObjectImpl();

      testOA.objectIsReady(servant);

      /*
       * Register using the default mechanism.
       */
      testServ.registerService(com.hp.mwtests.orbportability.orbspecific.orbtests.SimpleObjectHelper.narrow(testOA.corbaReference(servant)), TEST_SERVICE_NAME, params, Services.CONFIGURATION_FILE);

      assertSuccess();
    }
    catch (Exception e)
    {
View Full Code Here


      throw new BAD_PARAM();

  int mechanism = Services.NAME_SERVICE;
  boolean finished = false;
  org.omg.CORBA.Object nObj = null;
        Services services = new Services(orb);

  while (!finished)
  {
      try
      {
    nObj = services.getService(name, params, mechanism);

    if (nObj == null)
        throw new BAD_OPERATION();
    else
        finished = true;
View Full Code Here

        ORBInterface.initORB(args, null);

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

        Services services = new Services(ORBInterface.getORB());

        services.registerService(ORBInterface.orb().string_to_object(transactionServiceIOR), ORBServices.transactionService, transactionFactoryParams);

                System.out.println("Ready");
      }
      catch (Exception e)
      {
View Full Code Here

        ORBInterface.initORB(args, null);

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

        Services services = new Services(ORBInterface.getORB());

        services.registerService(ORBInterface.orb().string_to_object(transactionServiceIOR), ORBServices.transactionService, transactionFactoryParams);

        assertReady();
        assertSuccess();
      }
      catch (Exception e)
View Full Code Here

  public synchronized static org.omg.CORBA.Object getService(String name, Object[] params) throws IOException, InvalidName
  {
    if (_services == null)
    {
      _services = new Services(ORBInterface.getORB());
    }

    return _services.getService(name, params);
  }
View Full Code Here

      /** Initialise ORB and OA **/
      testORB.initORB(args, null);
      testOA.initPOA(args);

      /** Create services object **/
      Services testServ = new Services(testORB);

      String[] params = new String[1];
      params[0] = com.arjuna.orbportability.Services.otsKind;

      SimpleObjectImpl servant = new com.hp.mwtests.orbportability.orbspecific.orbinstance.SimpleObjectImpl();

      testOA.objectIsReady(servant);

      /*
       * Register using the default mechanism.
       */
      testServ.registerService(com.hp.mwtests.orbportability.orbspecific.orbtests.SimpleObjectHelper.narrow(testOA.corbaReference(servant)), TEST_SERVICE_NAME, params, Services.CONFIGURATION_FILE);

      assertSuccess();
    }
    catch (Exception e)
    {
View Full Code Here

      throw new BAD_PARAM();

  int mechanism = Services.NAME_SERVICE;
  boolean finished = false;
  org.omg.CORBA.Object nObj = null;
        Services services = new Services(orb);

  while (!finished)
  {
      try
      {
    nObj = services.getService(name, params, mechanism);

    if (nObj == null)
        throw new BAD_OPERATION();
    else
        finished = true;
View Full Code Here

TOP

Related Classes of com.arjuna.orbportability.Services

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.