Oops - my mistake. I have realised my error after posting this message. Obviously in the first example the ArrayList is only being instanciated once - in the same way that any object used directly in the route like that is instanciated once whilst the route is starting. The constant is then passing the same reference each time through the route.
In the second example the processor runs each time, hence the new object. My mistake - whoops!! :-/ 41n212 -- View this message in context: http://camel.465427.n5.nabble.com/Creating-new-objects-inside-constant-tp5801725p5801726.html Sent from the Camel - Users mailing list archive at Nabble.com.