Make sure your producer either extends default producer or implements IsSingleton, so the isSingleton method returns true.
On Thu, Aug 21, 2014 at 9:34 AM, martin11 <mato.kraj...@gmail.com> wrote: > You are right Claus. > MyComponent extends DefaultComponent and it is instanced only once but > createProducer() on Endpoint is called for every thread. So this is the > point of my issue. I have to resolve shared producer over all threads! > > It's clear to me now. Thanks > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Component-singleton-for-all-routes-tp5755446p5755472.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/