Question

When using routing in a Camel context via RouteBuilder, What is the practical difference between:

1) from(A).to(B).to(C);

2) from(A).to(B); from(B).to(C)

Was it helpful?

Solution

1) uses a single consumer from A then sends to B and sends the result of invoking B (if B returns some output) to C. So its a pipeline.

2) uses a consumer on B to send to C and won't send the output of B to C

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top