Package org.omg.CORBA

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


        BasicServer server = BasicServerHelper.narrow(rootPOA.servant_to_reference(servant));

        rootPOA.deactivate_object(rootPOA.servant_to_id(servant));

        System.out.println ("SERVER IOR: " + orb.object_to_string(server));
        System.out.flush();

        orb.run();
    }
}
View Full Code Here


         System.out.println("MAIN 2: child_ref1 = child_poa1.servant_to_reference(echoServant1)");
         final org.omg.CORBA.Object child_ref1 = child_poa1.servant_to_reference(echoServant1);

         System.out.println("MAIN 3: String child_ior1 = orb.object_to_string(child_ref1)");
         String child_ior1 = orb.object_to_string(child_ref1);
         System.out.println("MAIN: returning from orb.object_to_string(child_ref1)");

         System.out.println("MAIN 4: child_poa2.activate_object_with_id(child_id2.getBytes(), echoServant2)");
         child_poa2.activate_object_with_id(child_id2.getBytes(), echoServant2);
View Full Code Here

         System.out.println("MAIN 5: child_ref2 = child_poa2.servant_to_reference(echoServant2)");
         final org.omg.CORBA.Object child_ref2 = child_poa2.servant_to_reference(echoServant2);

         System.out.println("MAIN 6: String child_ior2 = orb.object_to_string(child_ref2)");
         String child_ior2 = orb.object_to_string(child_ref2);
         System.out.println("MAIN 7: returning from orb.object_to_string(child_ref2)");

         System.out.println("SERVER IOR: " + child_ior1);
         System.out.println("SERVER IOR: " + child_ior2);
         System.out.flush();
View Full Code Here

         // create servant object
         EchoMessageImpl echoServant = new EchoMessageImpl(implName + "." + poaBaseName + "." + objectId);

         child_poa1.activate_object_with_id(objectId.getBytes(), echoServant);
         final org.omg.CORBA.Object child_ref1 = child_poa1.servant_to_reference(echoServant);
         String child_ior1 = orb.object_to_string(child_ref1);
         System.out.println("SERVER IOR: " + child_ior1);
         System.out.flush();

         if (cmdArgs.getIORFile() != null)
         {
View Full Code Here

         // create servant object
         EchoMessageImpl echoServant = new EchoMessageImpl(implName + "." + poaBaseName + "." + objectId);

         parent_poa.activate_object_with_id(objectId.getBytes(), echoServant);
         final org.omg.CORBA.Object ref = parent_poa.servant_to_reference(echoServant);
         String ior = orb.object_to_string(ref);
         System.out.println("SERVER IOR: " + ior);
         System.out.flush();

         if (cmdArgs.getIORFile() != null)
         {
View Full Code Here

         // create servant object
         EchoMessageImpl echoServant = new EchoMessageImpl(implName + "." + objectId);
         poa.activate_object_with_id(objectId.getBytes(), echoServant);
         final org.omg.CORBA.Object ref = poa.servant_to_reference(echoServant);
         String ior = orb.object_to_string(ref);
         System.out.println("SERVER IOR: " + ior);
         System.out.flush();

         if (cmdArgs.getIORFile() != null)
         {
View Full Code Here

        // create the object reference
        org.omg.CORBA.Object o = poa.servant_to_reference(goodDayImpl);

        PrintWriter ps = new PrintWriter(new FileOutputStream(new File( args[0] )));
        ps.println( orb.object_to_string( o ) );
        ps.close();

        while ( ! goodDayImpl.getShutdown ())
        {
            Thread.sleep(1000);
View Full Code Here

            // create object and write out IOR
            GssUpServer server = new GssUpServer(orb);
            securePOA.activate_object_with_id("SecureObject".getBytes(), server);
            org.omg.CORBA.Object demo = securePOA.servant_to_reference(server);
            PrintWriter pw = new PrintWriter(new FileWriter(args[0]));
            pw.println(orb.object_to_string(demo));
            pw.flush();
            pw.close();

            // run the ORB
            orb.run();
View Full Code Here

        // bind the corba naming service to JNDI.
        CorbaServiceUtil.bindObject(context.getChildTarget(), "corbanaming", namingService);

        log.info("CORBA Naming Service Started");
        log.debugf("Naming: [" + orb.object_to_string(namingService) + "]");
    }

    @Override
    public void stop(StopContext context) {
        log.debugf("Stopping Service " + context.getController().getName().getCanonicalName());
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.