camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serega <sergejs.melde...@sybase.com>
Subject LoadBalansing configuration
Date Wed, 22 Dec 2010 21:25:42 GMT

Hi.
I can easily create a route using Java DSL of the form
from("foo").loadBalance().to("bar").("bla"),
which is perfect for static routes.
How can I do the same but without DSL. Something like 
CamelContext context = new DefaultCamelContext();.
LoadBalancer balancer = new RoundRobinLoadBalancer();
balancer.addEndpoint("bar");
balancer.addEndpoint("bla");
....

balancer.removeEndpoint("bar")

I need to be able to add/remove endpoints to/from load balancers at runtime.
Is it possible with Camel?

Sergey.


-- 
View this message in context: http://camel.465427.n5.nabble.com/LoadBalansing-configuration-tp3315711p3315711.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message