summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/DevGuideExamples/ImplRepo/IORTable/MessengerServer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/DevGuideExamples/ImplRepo/IORTable/MessengerServer.cpp')
-rw-r--r--TAO/orbsvcs/DevGuideExamples/ImplRepo/IORTable/MessengerServer.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/TAO/orbsvcs/DevGuideExamples/ImplRepo/IORTable/MessengerServer.cpp b/TAO/orbsvcs/DevGuideExamples/ImplRepo/IORTable/MessengerServer.cpp
index 5abbd2fc6db..a57efbde2f6 100644
--- a/TAO/orbsvcs/DevGuideExamples/ImplRepo/IORTable/MessengerServer.cpp
+++ b/TAO/orbsvcs/DevGuideExamples/ImplRepo/IORTable/MessengerServer.cpp
@@ -52,12 +52,13 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[])
PortableServer::POA_var poa = createPersistentPOA(root_poa.in(), poa_name);
- Messenger_i servant1, servant2;
+ PortableServer::Servant_var<Messenger_i> servant1 = new Messenger_i;
+ PortableServer::Servant_var<Messenger_i> servant2 = new Messenger_i;
PortableServer::ObjectId_var id1 = PortableServer::string_to_ObjectId("Object1");
- poa->activate_object_with_id(id1.in(), &servant1);
+ poa->activate_object_with_id(id1.in(), servant1.in());
PortableServer::ObjectId_var id2 = PortableServer::string_to_ObjectId("Object2");
- poa->activate_object_with_id(id2.in(), &servant2);
+ poa->activate_object_with_id(id2.in(), servant2.in());
obj = poa->id_to_reference(id1.in());
CORBA::String_var ior1 = orb->object_to_string(obj.in());