camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "kraythe ." <>
Subject Re: Apache Camel - Multicast - Is there a 'null' or a similar endpoint ?
Date Fri, 04 Oct 2013 04:42:15 GMT
The aggregated exchange is the one that gets returned and how the
aggregated exchange is created depends on the aggregation strategy you use.
When a route stops either by calling stop or merely not routing anymore,
the exchange on the last part of the route could be considered a reply. In
most cases it will reply back to the caller (unless you set a reply-to
destination in a JMS based route or some other cases). In your case if all
you want to do is return the enriched exchange then you dont need any to()
call. Just stop after the marshal.

*Robert Simmons Jr. MSc. - Lead Java Architect @ EA*
*Author of: Hardcore Java (2003) and Maintainable Java (2012)*
*LinkedIn: ***

On Wed, Oct 2, 2013 at 1:21 PM, arunodhaya80 <> wrote:

> Apologies for not making myself clear enough.
> As you could see, I am using Camel to route the request to a REST service
> to
> two bean methods.  These bean methods enrich a single Entity through the
> AggregationStrategy configured in the multicast.
> My understanding is that the last exchange returned by the
> AggregationStrategy is the one which gets returned to the user via the REST
> response.  Is it correct?
> That being the case, I am not using the `to` at all.  Am I using the `to`
> to
> just to satisfy the compiler.  I don't, in fact, need to log the output.
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message