Thanks for the reply Claus. 

So I can use something like this? Will this code execute
MessageRouter.routeTo() for every message? or only once for the router?

from("direct:start").loadBalance() 
    .circuitBreaker(2, 1000L, MyCustomException.class) 
    .recipientList().method(MessageRouter.class, "routeTo");
        

public class MessageRouter
{
        public String routeTo()
        {
                // get the currently available endpoints somehow
                String endpoints = getEndpoints();
                return endpoints;
        }
}



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

Reply via email to