summaryrefslogtreecommitdiff
path: root/TAO/tests/MProfile/server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/MProfile/server.cpp')
-rw-r--r--TAO/tests/MProfile/server.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/TAO/tests/MProfile/server.cpp b/TAO/tests/MProfile/server.cpp
index d9183ecd421..3cf31dd35fd 100644
--- a/TAO/tests/MProfile/server.cpp
+++ b/TAO/tests/MProfile/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");
@@ -64,8 +64,13 @@ main (int argc, char *argv[])
Simple_Server_i server_impl (orb.in ());
+ PortableServer::ObjectId_var id =
+ root_poa->activate_object (&server_impl);
+
+ CORBA::Object_var object = root_poa->id_to_reference (id.in ());
+
Simple_Server_var server =
- server_impl._this ();
+ Simple_Server::_narrow (object.in ());
CORBA::String_var ior =
orb->object_to_string (server.in ());