camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Willem.Jiang" <willem.ji...@gmail.com>
Subject Re: Best Practice fro Thread Safe processor
Date Fri, 08 Apr 2011 05:24:44 GMT
As Camel has a async process module, you can't know if the processors are
called in a single thread.
If you are using the thread local to store the states, it may be massed up.

My suggestion is store the states information into the Exchange,  and Camel
will make sure it is processed rightly.

Willem

--
View this message in context: http://camel.465427.n5.nabble.com/Best-Practice-fro-Thread-Safe-processor-tp4288973p4290075.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message