createDurableSubscriber

 

public TopicSubscriber createDurableSubscriber(Topic topic, String name) 
              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.

Returns

  • TopicSubscriber

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.


uj30130_