Using the CORBA Notification Service
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
boolean exists(in SubscriptionID subscription_id);
Note: For more information on exceptions and corresponding minor codes, see "Exception Minor Codes" on page -59.
Used by subscriber applications to determine if a subscription exists. Since the system administrator can delete subscriptions manually and the Notification Service can delete transient subscriptions automatically, a subscriber application might want to use this operation so that it can recreate the subscription, if necessary. The subscription_id
used in this operation is the same one that you got when you subscribed.
Returns Boolean True of the subscription exists and False if it does not.
if channel->exists (subscription_id) {
// The subscription is still valid.
} else {
// The subscription no longer exists.
}
The ChannelFactory
interface is used to find event channels. This interface provides a single operation: find_channel
.
The CORBA IDL for this interface:
module Tobj_SimpleEvents
{
typedef long ChannelID;
interface ChannelFactory
{
Channel find_channel(
in ChannelID channel_id // Must be DEFAULT_CHANNEL
);
};
};
![]() ![]() |
![]() |
![]() |