summaryrefslogtreecommitdiff
path: root/TAO/performance-tests/Latency
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/performance-tests/Latency')
-rw-r--r--TAO/performance-tests/Latency/Single_Threaded/server.cpp7
-rw-r--r--TAO/performance-tests/Latency/Thread_Per_Connection/server.cpp7
-rw-r--r--TAO/performance-tests/Latency/Thread_Pool/server.cpp7
3 files changed, 18 insertions, 3 deletions
diff --git a/TAO/performance-tests/Latency/Single_Threaded/server.cpp b/TAO/performance-tests/Latency/Single_Threaded/server.cpp
index 1e5b9bb067f..d779b7f755a 100644
--- a/TAO/performance-tests/Latency/Single_Threaded/server.cpp
+++ b/TAO/performance-tests/Latency/Single_Threaded/server.cpp
@@ -90,8 +90,13 @@ main (int argc, char *argv[])
1);
PortableServer::ServantBase_var owner_transfer(roundtrip_impl);
+ PortableServer::ObjectId_var id =
+ root_poa->activate_object (roundtrip_impl);
+
+ CORBA::Object_var object = root_poa->id_to_reference (id.in ());
+
Test::Roundtrip_var roundtrip =
- roundtrip_impl->_this ();
+ Test::Roundtrip::_narrow (object.in ());
CORBA::String_var ior =
orb->object_to_string (roundtrip.in ());
diff --git a/TAO/performance-tests/Latency/Thread_Per_Connection/server.cpp b/TAO/performance-tests/Latency/Thread_Per_Connection/server.cpp
index 5545b3a0fa4..c159645d6ab 100644
--- a/TAO/performance-tests/Latency/Thread_Per_Connection/server.cpp
+++ b/TAO/performance-tests/Latency/Thread_Per_Connection/server.cpp
@@ -90,8 +90,13 @@ main (int argc, char *argv[])
1);
PortableServer::ServantBase_var owner_transfer(roundtrip_impl);
+ PortableServer::ObjectId_var id =
+ root_poa->activate_object (roundtrip_impl);
+
+ CORBA::Object_var object = root_poa->id_to_reference (id.in ());
+
Test::Roundtrip_var roundtrip =
- roundtrip_impl->_this ();
+ Test::Roundtrip::_narrow (object.in ());
CORBA::String_var ior =
orb->object_to_string (roundtrip.in ());
diff --git a/TAO/performance-tests/Latency/Thread_Pool/server.cpp b/TAO/performance-tests/Latency/Thread_Pool/server.cpp
index e2fe122c00e..7219b6d4736 100644
--- a/TAO/performance-tests/Latency/Thread_Pool/server.cpp
+++ b/TAO/performance-tests/Latency/Thread_Pool/server.cpp
@@ -91,8 +91,13 @@ main (int argc, char *argv[])
1);
PortableServer::ServantBase_var owner_transfer(roundtrip_impl);
+ PortableServer::ObjectId_var id =
+ root_poa->activate_object (roundtrip_impl);
+
+ CORBA::Object_var object = root_poa->id_to_reference (id.in ());
+
Test::Roundtrip_var roundtrip =
- roundtrip_impl->_this ();
+ Test::Roundtrip::_narrow (object.in ());
CORBA::String_var ior =
orb->object_to_string (roundtrip.in ());