createDurableSubscriber

 

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

Creates a durable Subscriber to the specified topic.

Parameters

  • topic - the topic to subscribe to

  • name - the name used to identify this subscription.

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

  • noLocal - trueinhibits the delivery of messages published by its own connection.

Exceptions

  • IllegalStateException - if the session has been closed.

  • InvalidDestinationException - if the topic specified is not valid.

  • JMSException - if the Session fails to create a subscriber due to an internal error.


uj30140_