summaryrefslogtreecommitdiff
path: root/TAO/tests/Big_Twoways/client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/Big_Twoways/client.cpp')
-rw-r--r--TAO/tests/Big_Twoways/client.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/TAO/tests/Big_Twoways/client.cpp b/TAO/tests/Big_Twoways/client.cpp
index ff908dc6fc9..a03963bfa21 100644
--- a/TAO/tests/Big_Twoways/client.cpp
+++ b/TAO/tests/Big_Twoways/client.cpp
@@ -40,7 +40,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");
@@ -79,8 +79,13 @@ main (int argc, char *argv[])
1);
PortableServer::ServantBase_var peer_owner_transfer(peer_impl);
+ PortableServer::ObjectId_var id =
+ root_poa->activate_object (peer_impl);
+
+ CORBA::Object_var object = root_poa->id_to_reference (id.in ());
+
Test::Peer_var peer =
- peer_impl->_this ();
+ Test::Peer::_narrow (object.in ());
poa_manager->activate ();