Trying to understand Dynamic Router, docs are somewhat confusing.

Anyway, assuming this *Router*...

from("seda:router")
    .dynamicRouter(method(Slip.class, "slip"));

..and this *Slip* generator:

int invoked = 0;
public String slip(String body) {
    if (invoked == 0) {
        invoked++;
        return "direct:sayHi";
    }else
        return null;
}

..and simple *Route*

from("direct:sayHi")
      .log("log:hi")
      .to("seda:router");

*Questions*:
1) This example is contrived, so with concurrency issues aside, is it my
responsibility to track invocations?
2) When routing to arbitrary endpoints, like *direct:sayHi*, should those
endpoints forward to the router when complete, as in the above example?



--
View this message in context: 
http://camel.465427.n5.nabble.com/Dynamic-Router-forwarding-and-tracking-tp5791335.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to