Package org.omg.PortableServer

Examples of org.omg.PortableServer.POA.activate_object_with_id()


        POA child = rootPOA.create_POA ("thePOA", poa_manager, policies);

        poa_manager.activate();

        Servant impl = new NIOTestServer();
        child.activate_object_with_id(objID.getBytes(), impl);

        // Manually create a persistent based corbaloc.
        String corbalocStr =
        "corbaloc::localhost:"
        + props.getProperty("OAPort") + "/"
View Full Code Here


        byte []id = poa.servant_to_id( soi );

        for (int count=0;count<100;count++)
        {
            poa.deactivate_object(id);
            poa.activate_object_with_id(id, soi);
        }
  }


    /**
 
View Full Code Here

        byte [] id = poa.activate_object(soi);

        for (int count=0;count<100;count++)
        {
            poa.deactivate_object(id);
            poa.activate_object_with_id( id, soi);
        }
  }
}
View Full Code Here

        policies[2] = orb.create_policy(SAS_POLICY_TYPE.value, sasAny);
        POA securePOA = rootPOA.create_POA("SecurePOA", rootPOA.the_POAManager(), policies);
        rootPOA.the_POAManager().activate();

        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();
View Full Code Here

        rootPOA.the_POAManager ().activate ();

        byte[] oid = "benchServer".getBytes ();

        benchPOA.activate_object_with_id (oid, new benchImpl ());

        org.omg.CORBA.Object o = benchPOA.id_to_reference (oid);

        String ref = orb.object_to_string (o);
        String refFile = args[0];
View Full Code Here

         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);

         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)");
View Full Code Here

         child_poa1.the_POAManager().activate();

         // 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();
View Full Code Here

         parent_poa.the_POAManager().activate();

         // 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();
View Full Code Here

         poa.the_POAManager().activate();

         // 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();
View Full Code Here

            policies[2] = orb.create_policy(SAS_POLICY_TYPE.value, sasAny);
            POA securePOA = rootPOA.create_POA("SecurePOA", rootPOA.the_POAManager(), policies);
            rootPOA.the_POAManager().activate();

            // create object and write out IOR
            securePOA.activate_object_with_id("SecureObject".getBytes(), this);
            org.omg.CORBA.Object demo = securePOA.servant_to_reference(this);
            PrintWriter pw = new PrintWriter(new FileWriter(args[0]));
            pw.println(orb.object_to_string(demo));
            pw.flush();
            pw.close();
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.