summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelliott_c <ocielliottc@users.noreply.github.com>2007-03-13 17:43:34 +0000
committerelliott_c <ocielliottc@users.noreply.github.com>2007-03-13 17:43:34 +0000
commit92badb7480781fdef15a4f89eebf6fe01f5fc8b5 (patch)
tree186b7d2086805a13dfd7a455a26eded9ec3da602
parent9102363ef607ed733105e4d5a2fea0f45ebda345 (diff)
downloadATCD-92badb7480781fdef15a4f89eebf6fe01f5fc8b5.tar.gz
ChangeLogTag: Tue Mar 13 18:42:44 UTC 2007 Chad Elliott <elliott_c@ociweb.com>
-rw-r--r--TAO/ChangeLog7
-rw-r--r--TAO/performance-tests/Throughput/Receiver_Factory.cpp13
2 files changed, 19 insertions, 1 deletions
diff --git a/TAO/ChangeLog b/TAO/ChangeLog
index 7c77bcb459b..5b605537326 100644
--- a/TAO/ChangeLog
+++ b/TAO/ChangeLog
@@ -1,3 +1,10 @@
+Tue Mar 13 18:42:44 UTC 2007 Chad Elliott <elliott_c@ociweb.com>
+
+ * performance-tests/Throughput/Receiver_Factory.cpp:
+
+ Modified this performance-test to use explicit activation to
+ support CORBA e compact.
+
Tue Mar 13 18:24:27 UTC 2007 Chad Elliott <elliott_c@ociweb.com>
* examples/PluggableUDP/tests/Basic/client.cpp:
diff --git a/TAO/performance-tests/Throughput/Receiver_Factory.cpp b/TAO/performance-tests/Throughput/Receiver_Factory.cpp
index 15fe8ec5aea..67d83c75843 100644
--- a/TAO/performance-tests/Throughput/Receiver_Factory.cpp
+++ b/TAO/performance-tests/Throughput/Receiver_Factory.cpp
@@ -20,7 +20,18 @@ Receiver_Factory::create_receiver (void)
CORBA::NO_MEMORY ());
PortableServer::ServantBase_var transfer_ownership(receiver_impl);
- return receiver_impl->_this ();
+ CORBA::Object_var poa_object =
+ this->orb_->resolve_initial_references("RootPOA");
+
+ PortableServer::POA_var root_poa =
+ PortableServer::POA::_narrow (poa_object.in ());
+
+ PortableServer::ObjectId_var id =
+ root_poa->activate_object (receiver_impl);
+
+ CORBA::Object_var object = root_poa->id_to_reference (id.in ());
+
+ return Test::Receiver::_narrow (object.in ());
}
void