diff options
Diffstat (limited to 'TAO/orbsvcs/DevGuideExamples/NotifyService/EventSequence/MessengerConsumer.cpp')
-rw-r--r-- | TAO/orbsvcs/DevGuideExamples/NotifyService/EventSequence/MessengerConsumer.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/TAO/orbsvcs/DevGuideExamples/NotifyService/EventSequence/MessengerConsumer.cpp b/TAO/orbsvcs/DevGuideExamples/NotifyService/EventSequence/MessengerConsumer.cpp index 1196078a73f..251383637b2 100644 --- a/TAO/orbsvcs/DevGuideExamples/NotifyService/EventSequence/MessengerConsumer.cpp +++ b/TAO/orbsvcs/DevGuideExamples/NotifyService/EventSequence/MessengerConsumer.cpp @@ -25,7 +25,7 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[]) CosNotifyChannelAdmin::AdminID adminid; CosNotifyChannelAdmin::InterFilterGroupOperator ifgop = - CosNotifyChannelAdmin::OR_OP; + CosNotifyChannelAdmin::AND_OP; CosNotifyChannelAdmin::ConsumerAdmin_var consumer_admin = ec->new_for_consumers(ifgop, @@ -35,9 +35,10 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[]) PortableServer::POA_var poa = PortableServer::POA::_narrow (obj.in()); - EventSequenceConsumer_i servant(orb.in()); + PortableServer::Servant_var<EventSequenceConsumer_i> servant = + new EventSequenceConsumer_i(orb.in()); - PortableServer::ObjectId_var objectId = poa->activate_object(&servant); + PortableServer::ObjectId_var objectId = poa->activate_object(servant.in()); obj = poa->id_to_reference (objectId.in()); CosNotifyComm::SequencePushConsumer_var consumer = |