Hi Interesting use-case. Kinda like a failover transport for endpoints.
I think you could impl. it with the loadbalancer, extending QueueLoadBalancer and override the process method where you will do - try .. catch exception - exchange.isFailed() (* might needed) to determine if there was an error with the exchange and then find the fallback processor and let it try it. I actually think this might be a good loadbalancer to have in camel-core. We just need to work on the configuration so you can set the designated target, and the failover. And maybe you have multiple failovers. Any thoughts from others? /Claus Ibsen Apache Camel Committer Blog: http://davsclaus.blogspot.com/ On Wed, Dec 3, 2008 at 10:34 AM, S. Ali Tokmen <[EMAIL PROTECTED]> wrote: > Hello > > I would like to define the following architecture: > > * I have two Web services: one master and one fallback > * The master Web service is the one that needs to be called > * If the master is down, CAMEL should call the fallback > > How do I define this? I've found about > http://activemq.apache.org/camel/load-balancer.html but that balances load > (instead of using the fallback only in emergencies). > > Thanks > > -- > > S. Ali Tokmen > [EMAIL PROTECTED] > > Office: +33 4 76 29 76 19 > GSM: +33 66 43 00 555 > > Bull, Architect of an Open World TM > http://www.bull.com > > >
