Hi

Just use a processor / bean and do you own load balancing logic and
send using a producer template.

On Wed, Jul 21, 2010 at 1:06 PM, Cappa Roberto
<[email protected]> wrote:
> 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.



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to