summaryrefslogtreecommitdiff
path: root/TAO/tests/NestedUpcall/Simple/client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/NestedUpcall/Simple/client.cpp')
-rw-r--r--TAO/tests/NestedUpcall/Simple/client.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/TAO/tests/NestedUpcall/Simple/client.cpp b/TAO/tests/NestedUpcall/Simple/client.cpp
index 63b9bdd4b8e..90152bf511b 100644
--- a/TAO/tests/NestedUpcall/Simple/client.cpp
+++ b/TAO/tests/NestedUpcall/Simple/client.cpp
@@ -141,7 +141,12 @@ main (int argc,
client_i client_servant (quiet,
server.in ());
- client_var client_object = client_servant._this ();
+ PortableServer::ObjectId_var id =
+ root_poa->activate_object (&client_servant);
+
+ CORBA::Object_var object_act = root_poa->id_to_reference (id.in ());
+
+ client_var client_object = client::_narrow (object_act.in ());
Client_Task client_tasks (client_object.in (),
server.in ());