Hello guys, What is the best way to have a single instance of running route in the cluster (multiple instances of the same route deployed on the different containers)? The example of such a requirement is a ftp/smpp access with a limited number of connections. So only one instance of route is allowed to run at any single point of time.
Currently there is ZooKeeperRoutePolicy that seems to fit these requirements, but it seems to lock the routes only when an exchange is already started, i.e. ftp connection has been established (look at onExchangeBegin here http://camel.apache.org/maven/camel-2.9.0/camel-zookeeper/apidocs/org/apache/camel/component/zookeeper/policy/ZooKeeperRoutePolicy.html#onExchangeBegin%28org.apache.camel.Route,%20org.apache.camel.Exchange%29) Also for this issues Hazelcast with its distributed locks can be used. So what is the best way to have the backup routes and only single running route among the multiple similar routes? Does camel have a standard solution for such issues? Best Regards, Sergey _______________________________________________________ CONFIDENTIALITY NOTICE: This email and any files attached to it may be conf idential. If you are not the intended recipient you are notified that using, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. If you have received this email in error please notify the sender and delete this email.