diff options
Diffstat (limited to 'TAO/tests/Faults/pong.cpp')
-rw-r--r-- | TAO/tests/Faults/pong.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/TAO/tests/Faults/pong.cpp b/TAO/tests/Faults/pong.cpp index da2e90bc26f..2103c39c8fc 100644 --- a/TAO/tests/Faults/pong.cpp +++ b/TAO/tests/Faults/pong.cpp @@ -111,7 +111,7 @@ main (int argc, char *argv[]) try { CORBA::ORB_var orb = - CORBA::ORB_init (argc, argv, ""); + CORBA::ORB_init (argc, argv); CORBA::Object_var poa_object = orb->resolve_initial_references("RootPOA"); @@ -161,8 +161,13 @@ main (int argc, char *argv[]) PingObject_i callback_impl (orb.in (), persistent_poa.in ()); + PortableServer::ObjectId_var id = + root_poa->activate_object (&callback_impl); + + CORBA::Object_var object_act = root_poa->id_to_reference (id.in ()); + PingObject_var callback = - callback_impl._this (); + PingObject::_narrow (object_act.in ()); // If the ior_output_file exists, output the ior to it |