From 9551bf40b239c7a59d405bbac984f48f6f556ebe Mon Sep 17 00:00:00 2001 From: elliott_c Date: Tue, 13 Mar 2007 17:32:43 +0000 Subject: ChangeLogTag: Tue Mar 13 18:24:27 UTC 2007 Chad Elliott --- TAO/tests/Hello/server.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'TAO/tests/Hello/server.cpp') 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 ()); -- cgit v1.2.1