summaryrefslogtreecommitdiff
path: root/TAO/tests/Big_AMI
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/Big_AMI
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/Big_AMI')
-rw-r--r--TAO/tests/Big_AMI/client.cpp7
-rw-r--r--TAO/tests/Big_AMI/server.cpp7
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 ());