Using the CORBA Notification Service
Sets the filter object on the subscriber's callback object.
add_filter(
in Filter new_filter);
Note: For more information on exceptions and corresponding minor codes, see "Exception Minor Codes" on page -59.
Used when subscribing. This operation is used in subscriber applications to set the filter object to the subscriber's callback object. If the application using this operation will be shut down and restarted, the filter_id
should be written to persistent storage.
Note: This operation: (1) cannot be called after the subscriber callback object is connected (see connect_structured_push_consumer
above), (2) cannot be called more than once, and (3) when it is called, the filter constraint expression must already be present in the filter (see CosNotifyFilter::Filter add_constraints
).
Note: Only filters created by the event channel's default filter factory can be added.
Note: Code examples shown here are abbreviated. For complete code examples, see "Creating a Subscription" on page -11.
CosNotifyFilter::FilterID filter_id =
subscription->add_filter(filter.in());