Can you try:
multicast(.....)
.to("direct://route1")
.to("direct://route2")

-----Oorspronkelijk bericht-----
Van: nishat [mailto:nishat.dhil...@gmail.com] 
Verzonden: Friday 9 December 2016 15:36
Aan: users@camel.apache.org
Onderwerp: Camel Multicast behaving strangely - please help

Hello All 

i am getting as strange behavior from camel multicast. Looks like i am doing 
something wrong but cant point it. Need your help urgently. 

I a creating a multicast route to two endpoints as below:
Start point : direct://start
endpoint : direct://route1
endpoint : direct://route2

Routes info : 

1) from("direct://start").process(new DeepCloneRequest()).multicast(new
Aggregator()).to("direct://route1","direct://route2")

2) from("direct://route1").setheader(<to use later in
processor>).process(<do some preprocessing>).to("rest 
processor>url1").processor(<to
do post processing>).end

3) from("direct://route2").setheader(<to use later in
processor>).process(<do some preprocessing>).to("rest 
processor>url2").processor(<to
do post processing>).end

what i notice is that in my route number 3 in preprocessing i got the exchange 
out of number 2 preprocessing instead of DeepCloneRequest from nulticast. 

Can someone please help explain this? I want to get same request that multicast 
receive in both route 2 and 3.




--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-Multicast-behaving-strangely-please-help-tp5791319.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to