On Fri, Nov 19, 2010 at 11:33 AM, Andreas A. <[email protected]> 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: [email protected]
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to