[jboss-user] [JBoss Messaging] - Re: How to set up a durable subscriber?
janylj
do-not-reply at jboss.com
Thu Jul 17 12:22:22 EDT 2008
Yes. I started the connection.
Actually I am using the same code to connect to a topic. Everything runs OK. For the durable subscriber, I just look up another destination.
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);
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4165112#4165112
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4165112
More information about the jboss-user
mailing list