Session.CreateConsumer


Method

Declaration

MessageConsumer CreateConsumer( 
    Destination dest, 
    string messageSelector, 
    bool noLocal ); 
 
MessageConsumer CreateConsumer( 
    Destination dest, 
    string messageSelector ); 
 
MessageConsumer CreateConsumer( 
    Destination dest ); 

Purpose

Create a message consumer.

Parameter
Description
dest
Create a consumer for this destination. The argument may be any destination (queue or topic).
messageSelector
When present, the server filters messages using this selector, so the consumer receives only matching messages; see Message Selectors.
When absent, null, or the empty string, the consumer receives messages without filtering.
noLocal
When true, the server filters messages so the consumer does not receive messages that originate locally—that is, messages sent through the same connection.
When absent or false, the consumer receives messages with local origin.

Throws

EMSException

IllegalStateException

InvalidDestinationException

InvalidSelectorException

See Also

Destination


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