tibemsTopicSession_CreateSubscriber


Function

Purpose

Create a topic subscriber.

C Declaration

tibems_status tibemsTopicSession_CreateSubscriber( 
    tibemsTopicSession session, 
    tibemsTopicSubscriber* topicSubscriber, 
    tibemsTopic topic, 
    const char* messageSelector, 
    tibems_bool noLocal ); 

COBOL Call

CALL "tibemsTopicSession_CreateSubscriber" 
     USING BY VALUE session, 
           BY REFERENCE topicSubscriber, 
           BY VALUE topic, 
           BY REFERENCE messageSelector, 
           BY VALUE noLocal, 
           RETURNING tibems-status 
END-CALL. 

session and topicSubscriber have usage pointer.

Parameter
Description
session
Create the subscriber in this session.
topicSubscriber
The function stores the new subscriber object in this location.
topic
Create a subscriber for this topic.
messageSelector
When non-null, the server filters messages using this selector, so the subscriber receives only matching messages; see Message Selectors.
When null, or the empty string, the subscriber receives messages without filtering.
noLocal
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 subscriber receives messages with local origin.

See Also

tibemsTopic

tibemsTopicSubscriber


TIBCO Enterprise Message Service™ C and COBOL Reference
System Release 4.3, February 2006
Copyright © TIBCO Software Inc. All rights reserved
www.tibco.com