camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
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. <andreasasmuss@gmail.com> 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: http://camel.465427.n5.nabble.com/What-happens-when-using-same-AggregationStrategy-in-multiple-routes-tp3272140p3272140.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Mime
View raw message