I guess in my custom load balancer I can lookup the database to see whether a certain route is currently enabled/disabled. That could work. The only downside would be is that I need to know the full list of routes when Camel starts. That is probably a good enough compromise. Thanks a lot!
On 01/07/2014, at 4:11 AM, Claus Ibsen <claus.ib...@gmail.com> wrote: > Hi > > This is not supported. The list of endpoints is static. You can write > your own custom load balancer though. > > > On Mon, Jun 30, 2014 at 8:24 AM, Minh Tran <darth.minhs...@gmail.com> 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 > > > > -- > Claus Ibsen > ----------------- > Red Hat, Inc. > Email: cib...@redhat.com > Twitter: davsclaus > Blog: http://davsclaus.com > Author of Camel in Action: http://www.manning.com/ibsen > hawtio: http://hawt.io/ > fabric8: http://fabric8.io/