Examples of string_to_object()


Examples of org.omg.CORBA.ORB.string_to_object()

      {
        client_orb = ORB.init(new String[0], null);

        String ior = startServer(harness);

        org.omg.CORBA.Object object = client_orb.string_to_object(ior);

        RMI_test r = (RMI_test) PortableRemoteObject.narrow(object,
          RMI_test.class);

        harness.check("null", r.sayHello(null), "First call");
View Full Code Here

Examples of org.omg.CORBA.ORB.string_to_object()

      {
        System.err.println("Can't read from `" + ex.getMessage() + "'");
        System.exit(1);
      }

    org.omg.CORBA.Object obj = orb.string_to_object(impl);
    TestLocationForwardServer server =
      TestLocationForwardServerHelper.narrow(obj);

    if (server == null)
      throw new RuntimeException("Server is null");
View Full Code Here

Examples of org.omg.CORBA.ORB.string_to_object()

      org.omg.CORBA.Object[] objects = new org.omg.CORBA.Object[ servers ];

      for (int i = 0; i < iors.length; i++)
        {
          objects [ i ] = orb.string_to_object(iors [ i ]);
        }

      int[] times = new int[ requests ];
      Random r = new Random();
View Full Code Here

Examples of org.omg.CORBA.ORB.string_to_object()

      {
      }

    // Start the client.
    ORB client_orb = ORB.init(new String[ 0 ], null);
    NEC_RF11 obj = rf11Helper.narrow(client_orb.string_to_object(ior));
    rf11Caller ccall = new rf11Caller();

    ccall.init(client_orb, obj);
    ccall.run_all(harness);
View Full Code Here

Examples of org.omg.CORBA.ORB.string_to_object()

    // Instantiate another orb where this reflector will be a stub:
    ORB client_orb = ORB.init(args, null);

    org.omg.CORBA.Object object =
      (org.omg.CORBA.Object) client_orb.string_to_object(ior);

    Request r =
      object._create_request(null, "pass", server_orb.create_list(0), null);

    // Write the test values.
View Full Code Here

Examples of org.omg.CORBA.ORB.string_to_object()

          }

        String lHello = Tester.sayHello();

        // Saying remote hello.
        Object object2 = orb2.string_to_object(ior);

        poa_comTester Tester2 = poa_comTesterHelper.narrow(object2);

        String hello = Tester2.sayHello();
View Full Code Here

Examples of org.omg.CORBA.ORB.string_to_object()

      // "corbaname::host:4001/#StackFactory"
      String corbaName = new String(args[0]);
      try{
          ORB orb = ORB.init(args, null);

          objRef = orb.string_to_object(corbaName);
          sfRef  = StackFactoryHelper.narrow(objRef);
          sRef   = sfRef.create_stack();

          sRef.push(4);
          sRef.push(7);
View Full Code Here

Examples of org.omg.CORBA.ORB.string_to_object()

      String ior = IOR_CONTEXT;
      if (path.startsWith(ior))
      {
         String encoded = path.substring(ior.length());
         ORB orb = getORB(environment);
         Object object = orb.string_to_object(encoded);
         return narrowRMIServerStub(object);
      }
      throw new MalformedURLException("Unsupported binding: " + url);
   }
View Full Code Here

Examples of org.omg.CORBA.ORB.string_to_object()

    private RMIServer findRMIServerIIOP(String ior, Map env, boolean isIiop) {
  // could forbid "rmi:" URL here -- but do we need to?
  final ORB orb = (ORB)
      env.get(EnvHelp.DEFAULT_ORB);
  final Object stub = orb.string_to_object(ior);
  return (RMIServer) PortableRemoteObject.narrow(stub, RMIServer.class);
    }

    private RMIServer findRMIServerJRMP(String base64, Map env, boolean isIiop)
  throws IOException {
View Full Code Here

Examples of org.omg.CORBA.ORB.string_to_object()

        if (sIOR != null)
        {
            ORB oORB = ORB.init(new String[0], null);

            org.omg.CORBA.Object oObj = oORB.string_to_object(sIOR);
            oAdmin = new RemoteStore(XRIAdministrationHelper.narrow(oObj));
        }

        return oAdmin;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.