summaryrefslogtreecommitdiff
path: root/TAO/tests/Oneways_Invoking_Twoways/server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/Oneways_Invoking_Twoways/server.cpp')
-rw-r--r--TAO/tests/Oneways_Invoking_Twoways/server.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/TAO/tests/Oneways_Invoking_Twoways/server.cpp b/TAO/tests/Oneways_Invoking_Twoways/server.cpp
index 0856678ad4a..62ae3d6eb7a 100644
--- a/TAO/tests/Oneways_Invoking_Twoways/server.cpp
+++ b/TAO/tests/Oneways_Invoking_Twoways/server.cpp
@@ -39,7 +39,7 @@ main (int argc, char *argv[])
try
{
CORBA::ORB_var orb =
- CORBA::ORB_init (argc, argv, "");
+ CORBA::ORB_init (argc, argv);
CORBA::Object_var poa_object =
orb->resolve_initial_references("RootPOA");
@@ -65,8 +65,13 @@ main (int argc, char *argv[])
1);
PortableServer::ServantBase_var receiver_owner_transfer(sender_impl);
+ PortableServer::ObjectId_var id =
+ root_poa->activate_object (sender_impl);
+
+ CORBA::Object_var object = root_poa->id_to_reference (id.in ());
+
Test::Sender_var sender =
- sender_impl->_this ();
+ Test::Sender::_narrow (object.in ());
CORBA::String_var ior =
orb->object_to_string (sender.in ());