[
https://issues.apache.org/jira/browse/CAMEL-13242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16773991#comment-16773991
]
Claus Ibsen commented on CAMEL-13242:
-------------------------------------
You can use the zookeeper-master as endpoint to do this. Its a bit more tricky
with the route policy to make it support this.
> Support multiple routes in Master Route Policy
> ----------------------------------------------
>
> Key: CAMEL-13242
> URL: https://issues.apache.org/jira/browse/CAMEL-13242
> Project: Camel
> Issue Type: New Feature
> Components: camel-zookeeper
> Affects Versions: 2.22.0
> Reporter: Dennis
> Priority: Major
>
> In camel-zookeeper-master please add support for using one master route
> policy to control multiple routes
> MasterRoutePolicy policy = new MasterRoutePolicy();
> from("quartz2://r1?cron=0+0+15+?+**+").routePolicy(policy).log("r1 doing
> work")
> from("timer://r2?period=120s").routePolicy(policy).log("r2 doing work")
> Both routes must start only if the node is master
> See
> [discussion|http://camel.465427.n5.nabble.com/Master-Route-Policy-for-multiple-routes-td5830391.html[]|http://camel.465427.n5.nabble.com/Master-Route-Policy-for-multiple-routes-td5830391.html]
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)