Using the CORBA Notification Service
void
connect_structured_push_consumer
(
in CosNotifyComm::StructuredPushConsumer push_consumer)
raises(CosEventChannelAdmin::AlreadyConnected,
CosEventChannelAdmin::TypeError );
Note: For exception definitions and corresponding minor codes, see "Exception Minor Codes" on page -59.
Use this operation when subscribing. This operation is used in subscriber applications to subscribe to events. The push_consumer
parameter identifies the subscriber's callback object.
Once the connect_structured_push_consumer has been called, the Notification Service will proceed to send events to the subscriber by invoking the callback object's push_structured_event
operation. If the connect_structured_push_consumer has already been called, the AlreadyConnected
exception is raised.
Note: You must call set_qos
and add_filter
before calling connect_structured_push_consumer.
Note: Code examples shown here are abbreviated. For complete code examples, see "Creating a Subscription" on page -11.
subscription->connect_structured_push_consumer(
news_consumer.in()
);