How to create a durable subsriber ?

Showing Answers 1 - 2 of 2 Answers

Supraja

  • Mar 6th, 2006
 

Having performed the normal setup, an application can create a durable subscriber to a destination. To do this, the client program creates a durable TopicSubscriber, using session.createDurableSubscriber. The name subName is used as an identifier of the durable subscription.
session.createDurableSubscriber( Topic topic,         java.lang.String subName,         java.lang.String messageSelector,         boolean noLocal);
Alternatively, you can use the two-argument form of this operation, which takes only a topic and name (subName) as parameters. This alternative form invokes the four-argument operation with null as the messageSelector and false as the noLocal parameters.A JMS durable subscription is created with a unique identifier of the form clientID+"##"+subName. The characters ## should not be used in the clientID or subName if the JMS connection is to use a durable
 
 

  Was this answer useful?  Yes

aaDee

  • Mar 7th, 2006
 

Thanks for the valuable information ....

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions