camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zhemzhitsky Sergey <>
Subject Single instance of running route in the cluster
Date Wed, 10 Oct 2012 13:26:23 GMT
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,%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,

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. 

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message