diff options
Diffstat (limited to 'TAO/performance-tests/Throughput/server.cpp')
-rw-r--r-- | TAO/performance-tests/Throughput/server.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/TAO/performance-tests/Throughput/server.cpp b/TAO/performance-tests/Throughput/server.cpp index 7876dc8e1ca..87ca6634d03 100644 --- a/TAO/performance-tests/Throughput/server.cpp +++ b/TAO/performance-tests/Throughput/server.cpp @@ -39,7 +39,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"); @@ -64,8 +64,13 @@ main (int argc, char *argv[]) 1); PortableServer::ServantBase_var receiver_factory_owner_transfer(receiver_factory_impl); + PortableServer::ObjectId_var id = + root_poa->activate_object (receiver_factory_impl); + + CORBA::Object_var object = root_poa->id_to_reference (id.in ()); + Test::Receiver_Factory_var receiver_factory = - receiver_factory_impl->_this (); + Test::Receiver_Factory::_narrow (object.in ()); CORBA::String_var ior = orb->object_to_string (receiver_factory.in ()); |