From 9102363ef607ed733105e4d5a2fea0f45ebda345 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/Multiple/server.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'TAO/tests/Multiple/server.cpp') diff --git a/TAO/tests/Multiple/server.cpp b/TAO/tests/Multiple/server.cpp index 01275412a9e..7ed7d823af7 100644 --- a/TAO/tests/Multiple/server.cpp +++ b/TAO/tests/Multiple/server.cpp @@ -33,7 +33,13 @@ int main (int argc, char *argv[]) // Create the CORBA Object that is incarnated by the // delegated servant. - Multiple::Bottom_var bottom = delegated_servant._this (); + PortableServer::ObjectId_var id = + poa->activate_object (&delegated_servant); + + CORBA::Object_var object_act = poa->id_to_reference (id.in ()); + + Multiple::Bottom_var bottom = + Multiple::Bottom::_narrow (object_act.in ()); // Now we stringfy the object reference. CORBA::String_var ior = -- cgit v1.2.1