This is an interesting solution but unsure how to build it into my routes. Each 
of my failover route would have to create the same znode and then only one will 
trigger? I think this is how the zookeeper route policy works but it seems like 
it's really only useful when you have multiple instances of camel running the 
same route. 


On 01/07/2014, at 2:30 AM, Scott Stults <[email protected]> 
wrote:

> Another way you could do this is with Zookeeper leader election. Zk itself
> keeps track of the potential backup servers and each candidate must
> maintain an active connection to zk in order to remain a candidate. New
> candidate backups can register at any time.
> 
> Hope that helps give you some options!
> -Scott
> 
> 
> On Mon, Jun 30, 2014 at 2:24 AM, Minh Tran <[email protected]> wrote:
> 
>> Hi
>> 
>> I'd like to have a failover route where the list of failover routes are
>> dynamic. My intention is to store this list in a database and be able to
>> control the list of fail overs at runtime.
>> 
>> <from uri="direct:start"/>
>> <loadBalance>
>>        <failover/>
>> 
>>        <!-- not sure what goes here? -->
>> </loadBalance>
>> 
>> According to this
>> http://mail-archives.apache.org/mod_mbox/camel-users/201202.mbox/%3ccagb5ynmsdf2cnpdbr1yu2bqskhvgwcy1ujkdjoau21unek7...@mail.gmail.com%3E
>> 
>> I should use a dynamic router but I don't see how this would work. How do
>> I detect failed/successful routes so I know when to stop the dynamic
>> router? Thanks
>> 
>> Minh
> 
> 
> 
> 
> -- 
> Scott Stults | Founder & Solutions Architect | OpenSource Connections, LLC
> | 434.409.2780
> http://www.opensourceconnections.com

Reply via email to