camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: What happens when using same AggregationStrategy in multiple routes?
Date Sat, 20 Nov 2010 11:27:38 GMT
On Fri, Nov 19, 2010 at 11:33 AM, Andreas A. <> wrote:
> Hi
> I have a two routes that use the same AggregationStrategy, and I'm loading
> the AggregationStrategy as a Spring bean (which is a singleton). If the two
> routes run simultaneously can the messages be mixed up? Should I load the
> bean as prototype, or is this taken care of by Camel somehow?
> --

You are only in trouble if the strategy stores state and thus is not
thread safe.

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

Claus Ibsen
Twitter: davsclaus
Author of Camel in Action:

View raw message