![]() |
![]() |
e-docs > Tuxedo > Using the CORBA Notification Service > CORBA Notification Service API Reference |
Using the CORBA Notification Service
|
CORBA IDL
boolean exists(in SubscriptionID subscription_id);
Parameter
Exceptions
Note: For more information on exceptions and corresponding minor codes, see "Exception Minor Codes" on page 2-66.
Description
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.
Return Value
Returns Boolean True of the subscription exists and False if it does not.
Examples
C++ code example:
if channel->exists (subscription_id) {
// The subscription is still valid.
} else {
// The subscription no longer exists.
}
Java code example:
if channel.exists (subscription_id) {
// The subscription is still valid.
} else {
// The subscription no longer exists.
}
TOBJ_SimpleEvents::ChannelFactory Interface
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
);
};
};
![]() |
![]() |
![]() |
![]() |
||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |