camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Krsmanovic, Dragisa" <>
Subject Re: Best Practice fro Thread Safe processor
Date Thu, 07 Apr 2011 21:54:28 GMT
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" <> 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:
>Sent from the Camel - Users mailing list archive at

View raw message