![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |
tibems_status tibemsSession_CreateDurableSubscriber(tibemsSession session,tibems_bool noLocal );BY VALUE topic,
session, msgConsumer, and topic have usage pointer.
When true, the server filters messages so the subscriber does not receive messages that originate locally—that is, messages sent through the same connection.When false, the consumer receives messages with local origin.The server associates a durable subscription with at most one subscriber object at a time. When a subscriber object exists, the subscription is active, and the server delivers messages to it; when no subscriber object exists, the subscription is inactive.
• Subscription Name a parameter of this call
• Client ID an optional property of the tibemsConnection (used only when supplied)If a matching subscription exists, but it is already active, this function fails with TIBEMS_INVALID_CONSUMER.
• If the tibemsConnection’s client ID is non-null when a session creates a durable subscription, then only sessions of a connection with the same client ID can attach to that subscription.
• If the tibemsConnection’s client ID is null when a session creates a durable subscription, then any session can attach to that subscription (to receive its messages).Notice that the server does not use the topic and message selector arguments to match a subscriber to an existing subscription. As a result, client programs can change a subscription by altering either or both of these arguments. The effect is equivalent to deleting the existing subscription (from the server) and creating a new one (albeit with the same client ID and subscription name).
![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |