activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem jiang <willem.ji...@gmail.com>
Subject Re: How to implement two consumers on a topic (Camel). One of consumers is inactive until the active one fails?
Date Tue, 08 Oct 2013 02:24:40 GMT
Hi,  

Did you try to use camel-zookeeper[1]?
[1]http://camel.apache.org/zookeeper.html#Zookeeper-ZooKeeperenabledRoutepolicy.


--  
Willem Jiang

Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English)
          http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem





On Tuesday, October 8, 2013 at 5:41 AM, salemi wrote:

> How to implement two consumers on a topic. One of the consumers is inactive
> until the active one fails?  
>  
> Our approach was to start two clients with the same clientId and
> durableSubscriptionName. But when we kill the first client, the second
> client doesn't reconnect automaticly!
>  
> <from
> uri="jms:topic:mytopic?clientId=1&amp;durableSubscriptionName=EP_CAMEL1"/>
>  
>  
>  
>  
>  
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/How-to-implement-two-consumers-on-a-topic-Camel-One-of-consumers-is-inactive-until-the-active-one-fa-tp4672355.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com (http://Nabble.com).




Mime
View raw message