Hi,
I need to loadBalance with failover to a list of final endpoints that can be
dynamically calculated, so I cannot use ".to()" after the failover clause
I've tryed in this way, using the recipient list:
from("jetty:....")
.process(new Processor() {
public void process(Exchange exc) throws Exception {
exc.getIn().setHeader("urls",
"http://url1,http://url2");
}
})
.loadBalance()
.failover(-1, true, true)
.recipientList(header("urls").tokenize(","));
But it doesn't work, because the recipient list is not used in round-robin way.
Any idea?
Thanks.