diff options
Diffstat (limited to 'TAO/tests/Parallel_Connect_Strategy/server.cpp')
-rw-r--r-- | TAO/tests/Parallel_Connect_Strategy/server.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/TAO/tests/Parallel_Connect_Strategy/server.cpp b/TAO/tests/Parallel_Connect_Strategy/server.cpp index bd186cfbd33..aae9f2a6bfc 100644 --- a/TAO/tests/Parallel_Connect_Strategy/server.cpp +++ b/TAO/tests/Parallel_Connect_Strategy/server.cpp @@ -43,7 +43,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"); @@ -68,8 +68,13 @@ main (int argc, char *argv[]) 1); PortableServer::ServantBase_var owner_transfer(hello_impl); + PortableServer::ObjectId_var id = + root_poa->activate_object (hello_impl); + + CORBA::Object_var object = root_poa->id_to_reference (id.in ()); + Test::Hello_var hello = - hello_impl->_this (); + Test::Hello::_narrow (object.in ()); CORBA::String_var ior = |