summaryrefslogtreecommitdiff
path: root/TAO/tests/OBV/Any/server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/OBV/Any/server.cpp')
-rw-r--r--TAO/tests/OBV/Any/server.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/TAO/tests/OBV/Any/server.cpp b/TAO/tests/OBV/Any/server.cpp
index 1fb435a3eb9..7c4ecab09c8 100644
--- a/TAO/tests/OBV/Any/server.cpp
+++ b/TAO/tests/OBV/Any/server.cpp
@@ -40,7 +40,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");
@@ -66,8 +66,13 @@ main (int argc, char *argv[])
PortableServer::ServantBase_var owner_transfer(test_impl);
+ PortableServer::ObjectId_var id =
+ root_poa->activate_object (test_impl);
+
+ CORBA::Object_var object = root_poa->id_to_reference (id.in ());
+
OBV_AnyTest::Test_var test =
- test_impl->_this ();
+ OBV_AnyTest::Test::_narrow (object.in ());
CORBA::String_var ior =
orb->object_to_string (test.in ());