summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/DevGuideExamples/NotifyService/EventSequence/MessengerServer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/DevGuideExamples/NotifyService/EventSequence/MessengerServer.cpp')
-rw-r--r--TAO/orbsvcs/DevGuideExamples/NotifyService/EventSequence/MessengerServer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/TAO/orbsvcs/DevGuideExamples/NotifyService/EventSequence/MessengerServer.cpp b/TAO/orbsvcs/DevGuideExamples/NotifyService/EventSequence/MessengerServer.cpp
index 640f0013c6e..e0ff009ea28 100644
--- a/TAO/orbsvcs/DevGuideExamples/NotifyService/EventSequence/MessengerServer.cpp
+++ b/TAO/orbsvcs/DevGuideExamples/NotifyService/EventSequence/MessengerServer.cpp
@@ -21,8 +21,9 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv [])
PortableServer::POAManager_var mgr = poa->the_POAManager();
mgr->activate();
- Messenger_i messenger_servant (orb.in());
- PortableServer::ObjectId_var oid = poa->activate_object (&messenger_servant);
+ PortableServer::Servant_var<Messenger_i> messenger_servant =
+ new Messenger_i(orb.in());
+ PortableServer::ObjectId_var oid = poa->activate_object (messenger_servant.in());
obj = poa->id_to_reference(oid.in());
CORBA::String_var str = orb->object_to_string (obj.in());