summaryrefslogtreecommitdiff
path: root/TAO/tests/Hello/server.cpp
diff options
context:
space:
mode:
authorelliott_c <elliott_c@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2007-03-13 17:32:43 +0000
committerelliott_c <elliott_c@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2007-03-13 17:32:43 +0000
commit9551bf40b239c7a59d405bbac984f48f6f556ebe (patch)
tree5d118cb51468a6c8f5746853b905208a193b492c /TAO/tests/Hello/server.cpp
parent7cddfd814db62d1bcc1a4f8be3c73e53995297de (diff)
downloadATCD-9551bf40b239c7a59d405bbac984f48f6f556ebe.tar.gz
ChangeLogTag: Tue Mar 13 18:24:27 UTC 2007 Chad Elliott <elliott_c@ociweb.com>
Diffstat (limited to 'TAO/tests/Hello/server.cpp')
-rw-r--r--TAO/tests/Hello/server.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/TAO/tests/Hello/server.cpp b/TAO/tests/Hello/server.cpp
index b09955c1ea2..442317e303f 100644
--- a/TAO/tests/Hello/server.cpp
+++ b/TAO/tests/Hello/server.cpp
@@ -66,7 +66,12 @@ main (int argc, char *argv[])
1);
PortableServer::ServantBase_var owner_transfer(hello_impl);
- Test::Hello_var hello = hello_impl->_this ();
+ PortableServer::ObjectId_var id =
+ root_poa->activate_object (hello_impl);
+
+ CORBA::Object_var object = root_poa->id_to_reference (id.in ());
+
+ Test::Hello_var hello = Test::Hello::_narrow (object.in ());
CORBA::String_var ior = orb->object_to_string (hello.in ());