Processors are singletons.

Typically we don't hold any state in them.

If you want to hold state in Processor, you can do it. In that case, of
course, you have to think of concurrency. There are many ways to that as
you can find in Java Concurrency in Practice. It's all up to you.


On 4/7/11 1:40 PM, "pminearo" <pmine...@reardencommerce.com> wrote:

>Just to clarify a bit because maybe the Processor doesn't show it well
>nor my
>question:  Java Concurrency in Practice states that "Stateless objects are
>always thread-safe".  But what happens when you do have state?  What is
>everyone finding works best for Threading?
>
>
>--
>View this message in context:
>http://camel.465427.n5.nabble.com/Best-Practice-fro-Thread-Safe-processor-
>tp4288973p4289404.html
>Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to