summaryrefslogtreecommitdiff
path: root/TAO/tests/BiDirectional/client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/BiDirectional/client.cpp')
-rw-r--r--TAO/tests/BiDirectional/client.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/TAO/tests/BiDirectional/client.cpp b/TAO/tests/BiDirectional/client.cpp
index 4638e3f968f..4fe18d7c1b9 100644
--- a/TAO/tests/BiDirectional/client.cpp
+++ b/TAO/tests/BiDirectional/client.cpp
@@ -109,8 +109,13 @@ main (int argc, char *argv[])
Callback_i callback_impl (orb.in ());
+ PortableServer::ObjectId_var id =
+ root_poa->activate_object (&callback_impl);
+
+ CORBA::Object_var object_act = root_poa->id_to_reference (id.in ());
+
Callback_var callback =
- callback_impl._this ();
+ Callback::_narrow (object_act.in ());
// Send the calback object to the server
server->callback_object (callback.in ());