camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From DariusX <>
Subject Re: Question on multicast to pipelines
Date Tue, 01 Nov 2016 17:27:40 GMT
Ah, I didn't understand what you were saying before. 
Your point is that these two should be synonymous, even if they're enclosed
in a multicast()...end():

1) This...
     .*pipeline("direct:A", "direct:B")*

2) and this...

but only the second one works the way you expect. 
The first one sends the same input to both routes (i.e. does not send the
output of A to B)

It does seem odd, and a brief test confirms the behavior you describe ( 
Sample code here

Looking at  the Camel code - Line 1165

, that version of pipeline(String...uri) is simply a synonym for
to(String...uri), which would explain how it is working.

Someone else would need to speak to how it *ought* to work, but I agree it
does not seem intuitive as-is.


View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message