);
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, orb1.object_to_string(obj));
// Now create number two.
final ORB 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, orb2.object_to_string(obj));
assertTrue