[jboss-user] [JBoss Messaging] - Re: How to set up a durable subscriber?

jmesnil do-not-reply at jboss.com
Thu Jul 17 12:41:29 EDT 2008


"janylj" wrote : 
  |         if (client.isDurable()) {
  |   |             String clientName = getClientName();
  |   |             LOG.info("Creating durable subscriber (" + clientName + ") to: " + dest.toString());
  |   |             jmsConsumer = getSession().createDurableSubscriber((Topic) dest, clientName);
  |   |         } else {
  |   |             LOG.info("Creating non-durable consumer to: " + dest.toString());
  |   |             jmsConsumer = getSession().createConsumer(dest);
  |   |         }

In both case, you use the same destination "dest".
Do you mean that if you client is durable, the jmsConsumer does not receive any message from the topic? while it is not durable, it receives message?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4165124#4165124

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4165124



More information about the jboss-user mailing list