createSubscriber

 

public TopicSubscriber createSubscriber(Topic topic, String selector, 
                                        boolean noLocal) 
              throws JMSException;

Creates a nondurable Subscriber to the specified topic.

Parameters

  • topic - the topic to subscribe to

  • selector - only messages with properties matching the message selector expression are delivered. This value may be null.

  • noLocal - if set, inhibits the delivery of messages published by its own connection.

Exceptions

  • JMSException - if a session fails to create a subscriber due to some JMS error or invalid selector.

  • InvalidDestinationException - if invalid Topic specified.

  • InvalidSelectorException - if the message selector is invalid.


uj30750_