Package org.omg.CORBA

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


        }

        poa.the_POAManager().activate();

        testRun++;
        System.out.println ("SERVER IOR: " + serverOrb.object_to_string(obj));
        System.out.flush();

        // wait for requests
        serverOrb.run();
    }
View Full Code Here


        BasicServerImpl server = new BasicServerImpl(orb);
        securePOA.activate_object_with_id("SecureObject".getBytes(), server);
        org.omg.CORBA.Object obj = securePOA.servant_to_reference(server);

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

        // wait for requests
        orb.run();
    }
View Full Code Here

        nc.rebind(nc.to_name("ServantScaling/SessionFactory"), sessionFactory);

        // wait for requests
        rootPOA.the_POAManager().activate();

        System.out.println ("SERVER IOR: " + orb.object_to_string (sessionFactory));
        orb.run();
    }
}
View Full Code Here

        DayFactoryImpl dayFactoryImpl = new DayFactoryImpl(persistent_poa);
        obj = servantLocatorImpl.registerObject(DayFactoryHelper.id(), DayFactoryHelper.id(), dayFactoryImpl);

        poa_manager.activate();

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

        // wait for requests
        orb.run();
    }
View Full Code Here

        org.omg.CORBA.Object demo = poa.servant_to_reference( new Server());

        PrintWriter pw = new PrintWriter( new FileWriter( args[ 0 ] ));

        // print stringified object reference to file
        pw.println( orb.object_to_string( demo ));

        pw.flush();
        pw.close();

        if (args.length == 2)
View Full Code Here

         System.out.println("Server 1 can be reached with:");
         System.out.println("   " + corbalocStr + "\n");

         org.omg.CORBA.Object objP = orb.string_to_object(corbalocStr);
         System.out.println("Server 1 ior: " + orb.object_to_string (objP));

         PrintWriter ps = new PrintWriter(new FileOutputStream(new File( args[0] ) + "persistent"));
         ps.println( orb.object_to_string( objP ) );
         ps.close();
View Full Code Here

         org.omg.CORBA.Object objP = orb.string_to_object(corbalocStr);
         System.out.println("Server 1 ior: " + orb.object_to_string (objP));

         PrintWriter ps = new PrintWriter(new FileOutputStream(new File( args[0] ) + "persistent"));
         ps.println( orb.object_to_string( objP ) );
         ps.close();

         // Setup second server
         org.omg.CORBA.Object objT = helloPOATransient.servant_to_reference(new GoodDayImpl("SomewhereT"));
View Full Code Here

         // Setup second server
         org.omg.CORBA.Object objT = helloPOATransient.servant_to_reference(new GoodDayImpl("SomewhereT"));

         // Use the PrintIOR utility function to extract a transient corbaloc string.
         corbalocStr = PrintIOR.printCorbalocIOR (orb, orb.object_to_string(objT));
         System.out.println("Server 2 can be reached with:");
         System.out.println("   " + corbalocStr + "\n");

         ps = new PrintWriter(new FileOutputStream(new File( args[0] ) + "transient"));
         ps.println( corbalocStr );
View Full Code Here

         ps.println( corbalocStr );
         ps.close();


         // Add an object key mapping to second server
         System.out.println("Adding object mapping for server 1 ior:" + orb.object_to_string (objP));
         ((org.jacorb.orb.ORB)orb).addObjectKey ("VeryShortKey", orb.object_to_string (objP));


         // wait for requests
View Full Code Here

         ps.close();


         // Add an object key mapping to second server
         System.out.println("Adding object mapping for server 1 ior:" + orb.object_to_string (objP));
         ((org.jacorb.orb.ORB)orb).addObjectKey ("VeryShortKey", orb.object_to_string (objP));


         // wait for requests

         if (args.length == 2)
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.