diff options
Diffstat (limited to 'TAO/tests/Big_AMI')
-rw-r--r-- | TAO/tests/Big_AMI/client.cpp | 7 | ||||
-rw-r--r-- | TAO/tests/Big_AMI/server.cpp | 7 |
2 files changed, 12 insertions, 2 deletions
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 ()); |