summaryrefslogtreecommitdiff
path: root/TAO/tests/Crashed_Callback
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/Crashed_Callback
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/Crashed_Callback')
-rw-r--r--TAO/tests/Crashed_Callback/client.cpp7
-rw-r--r--TAO/tests/Crashed_Callback/server.cpp7
2 files changed, 12 insertions, 2 deletions
diff --git a/TAO/tests/Crashed_Callback/client.cpp b/TAO/tests/Crashed_Callback/client.cpp
index e007084b933..8d99edeca1b 100644
--- a/TAO/tests/Crashed_Callback/client.cpp
+++ b/TAO/tests/Crashed_Callback/client.cpp
@@ -104,8 +104,13 @@ main (int argc, char *argv[])
1);
PortableServer::ServantBase_var owner_transfer(crashed_callback_impl);
+ PortableServer::ObjectId_var id =
+ root_poa->activate_object (crashed_callback_impl);
+
+ CORBA::Object_var object = root_poa->id_to_reference (id.in ());
+
Test::Crashed_Callback_var crashed_callback =
- crashed_callback_impl->_this ();
+ Test::Crashed_Callback::_narrow (object.in ());
poa_manager->activate ();
diff --git a/TAO/tests/Crashed_Callback/server.cpp b/TAO/tests/Crashed_Callback/server.cpp
index 9af16b1015c..ba57e86edae 100644
--- a/TAO/tests/Crashed_Callback/server.cpp
+++ b/TAO/tests/Crashed_Callback/server.cpp
@@ -91,8 +91,13 @@ main (int argc, char *argv[])
1);
PortableServer::ServantBase_var owner_transfer(service_impl);
+ PortableServer::ObjectId_var id =
+ root_poa->activate_object (service_impl);
+
+ CORBA::Object_var object = root_poa->id_to_reference (id.in ());
+
Test::Service_var service =
- service_impl->_this ();
+ Test::Service::_narrow (object.in ());
CORBA::String_var ior =
orb->object_to_string (service.in ());