activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From quoc_thai <dokota_ar...@yahoo.com.vn>
Subject Create durable topic subscriber ?
Date Mon, 18 Oct 2010 07:58:52 GMT

Hi all,

   From the 
http://activemq.apache.org/how-do-durable-queues-and-topics-work.html
http://activemq.apache.org/how-do-durable-queues-and-topics-work.html 
   I want create a durable topic subscriber but at the consumer, I receive
some error "You cannot create a durable subscriber without specifying a
unique clientID on a Connection"
   At the consumer, my code fragment:
   ------------------------
   Topic topic = consumer.getSession().createTopic("STOCKS." + stock);
   TopicSubscriber consumer =
consumer.getSession().createDurableSubscriber(topic,"myDurable1");
   consumer.setMessageListener(new Listener());
   ------------------------
   
   Can show me some code fragments to create durable topic ?

   Thanks.
-- 
View this message in context: http://activemq.2283324.n4.nabble.com/Create-durable-topic-subscriber-tp2999808p2999808.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message