);
poa.the_POAManager().activate();
// create the object reference
poa.activate_object_with_id("Object".getBytes(), new BasicServerImpl());
org.omg.CORBA.Object obj = poa.id_to_reference( "Object".getBytes() );
ParsedIOR pior = new ParsedIOR( orb1.object_to_string(obj), orb1, loggerMock);
// Now create number two.
orb2 = newORB(props);
rootPoa = (POAHelper.narrow( orb2.resolve_initial_references( "RootPOA" )));
// Create a child POA
poa = rootPoa.create_POA
(
"TestServerPOA",
rootPoa.the_POAManager(),
new Policy[]
{
rootPoa.create_lifespan_policy( LifespanPolicyValue.TRANSIENT),
rootPoa.create_id_assignment_policy( IdAssignmentPolicyValue.USER_ID)
}
);
poa.the_POAManager().activate();
// create the object reference
poa.activate_object_with_id("Object".getBytes(), new BasicServerImpl());
obj = poa.id_to_reference( "Object".getBytes() );
ParsedIOR pior2 = new ParsedIOR( orb2.object_to_string(obj), orb1, loggerMock);
assertTrue