summaryrefslogtreecommitdiff
path: root/TAO/tests/RTCORBA/Thread_Pool/server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/RTCORBA/Thread_Pool/server.cpp')
-rw-r--r--TAO/tests/RTCORBA/Thread_Pool/server.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/TAO/tests/RTCORBA/Thread_Pool/server.cpp b/TAO/tests/RTCORBA/Thread_Pool/server.cpp
index dcf82a74e24..816ea22446e 100644
--- a/TAO/tests/RTCORBA/Thread_Pool/server.cpp
+++ b/TAO/tests/RTCORBA/Thread_Pool/server.cpp
@@ -137,8 +137,13 @@ create_POA_and_register_servant (CORBA::Policy_ptr threadpool_policy,
PortableServer::ServantBase_var safe_servant (servant);
ACE_UNUSED_ARG (safe_servant);
+ PortableServer::ObjectId_var id =
+ poa->activate_object (servant);
+
+ CORBA::Object_var object = poa->id_to_reference (id.in ());
+
test_var test =
- servant->_this ();
+ test::_narrow (object.in ());
int result =
write_ior_to_file (orb,
@@ -199,8 +204,13 @@ Task::svc (void)
test_i servant (this->orb_.in (),
root_poa.in (),
nap_time);
+ PortableServer::ObjectId_var id =
+ root_poa->activate_object (&servant);
+
+ CORBA::Object_var object_act = root_poa->id_to_reference (id.in ());
+
test_var test =
- servant._this ();
+ test::_narrow (object_act.in ());
int result =
write_ior_to_file (this->orb_.in (),