camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kenhans <>
Subject Re: No hit during Multicast
Date Wed, 13 Jun 2012 11:15:12 GMT
this is turning into a farce and I might end up being the stupidest kid on
earth :-)

Anyway, when aggregating, I do not seem to be able to fetch relevant data
from neither the oldExchange nor the newExchange. I am not able to see any
Exchange.TO_ENPOINT, and all headers I set within the bean or filter are not
visible when doing aggregation. It seems like the local copies of the
exchange which are multicasted, loose their values before aggregation. The
only way I was able to preserv anything, was to set the properties directly
on the CamelContext of the Exchange
exchange.getContext().getProperties().put("foo", "bar");
Then I am able to access that property when doing the aggregation as defined
below. However, this seems to be a bit dirty as I need to remove the
property after using it etc.

MulticastDefinition multicastDefinition = route.multicast(); 
for (Producer producer : producers) { 
  .filter().method(producer, "filter")   
  .bean(producer, "createEvent") 
multicastDefinition.aggregate(constant(true) , new

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

View raw message