Re: Apache Camel and Synchronized methods in processor

2013-10-31 Thread Christian Posta
If multiple threads are accessing your beans, then yes, your beans have to be thread-safe. On Thu, Oct 31, 2013 at 7:00 AM, M314 wrote: > In general my routing is quite complicated. Do it realy matter how exacly it > looks like? > > Numbers of used threads areset by property one 'concurrentConsum

Re: Apache Camel and Synchronized methods in processor

2013-10-31 Thread M314
In general my routing is quite complicated. Do it realy matter how exacly it looks like? Numbers of used threads areset by property one 'concurrentConsumers' for JmsConfiguration. MyBean distribute jobs between chlid applications (balance load of child applications) - with dynamic routing. After

Re: Apache Camel and Synchronized methods in processor

2013-10-30 Thread Christian Posta
if you have multiple threads running the route (maybe show the full route, and explain how it gets invoked) and you're sharing state in your beans, then you'll probably want some kind of locking/mutex. adding a synchronized keyword to the java method could help. maybe you could explain a little mor