Hi Well then you do something not right in your "thread code". There should be 1 camel context which you use, and get the producer from.
On Thu, Aug 21, 2014 at 10:30 AM, martin11 <mato.kraj...@gmail.com> wrote: > Yes, isSingleton of MyProducer returns 'true' but ProducerCache in camel core > is new instance for every thread and then createProducer() is called once > per thread. > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Component-singleton-for-all-routes-tp5755446p5755474.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/