You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Nick Heudecker <nh...@gmail.com> on 2012/02/07 03:12:10 UTC
ZooKeeper Component Failover
Hi,
How do I structure the ZooKeeper URL for failover? Is this functionality
currently supported? Thanks for your time.
-Nick
Re: ZooKeeper Component Failover
Posted by Ioannis Canellos <io...@gmail.com>.
The component uses a ZookeeperConfiguration object, on which you can add as many servers as you wish. So it would be something like this:
ZooKeeperConfiguration configuration = new ZooKeeperConfiguration();
configuration.setServers(serversList);
ZooKeeperComponent zookeeper = new ZookeeperComponent();
zookeeper.setConfiguration(configuration);
and so on...
Ioannis Canellos
FuseSource
Blog: http://iocanel.blogspot.com
Apache Karaf Committer & PMC
Apache Camel Committer
Apache ServiceMix Committer
Apache Gora Committer
Apache DirectMemory Committer