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/Big_AMI/client.cpp | 7 ++++++- TAO/tests/Big_AMI/server.cpp | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'TAO/tests/Big_AMI') diff --git a/TAO/tests/Big_AMI/client.cpp b/TAO/tests/Big_AMI/client.cpp index 7e99acf658d..55b703839e0 100644 --- a/TAO/tests/Big_AMI/client.cpp +++ b/TAO/tests/Big_AMI/client.cpp @@ -158,8 +158,13 @@ main (int argc, char *argv[]) // Instantiate the ReplyHandler and register that with the POA. Handler handler; + PortableServer::ObjectId_var id = + poa_var->activate_object (&handler); + + CORBA::Object_var object = poa_var->id_to_reference (id.in ()); + A::AMI_AMI_TestHandler_var the_handler_var = - handler._this (); + A::AMI_AMI_TestHandler::_narrow (object.in ()); CORBA::Long l = 931247; A::Payload payload (payload_size); diff --git a/TAO/tests/Big_AMI/server.cpp b/TAO/tests/Big_AMI/server.cpp index 6d2b8c8acfe..10bf82e95b2 100644 --- a/TAO/tests/Big_AMI/server.cpp +++ b/TAO/tests/Big_AMI/server.cpp @@ -78,8 +78,13 @@ main (int argc, char *argv[]) AMI_Test_i ami_test_i (orb.in ()); + PortableServer::ObjectId_var id = + root_poa->activate_object (&ami_test_i); + + CORBA::Object_var object = root_poa->id_to_reference (id.in ()); + A::AMI_Test_var ami_test_var = - ami_test_i._this (); + A::AMI_Test::_narrow (object.in ()); CORBA::String_var ior = orb->object_to_string (ami_test_var.in ()); -- cgit v1.2.1