camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Component singleton for all routes
Date Thu, 21 Aug 2014 07:54:39 GMT
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.krajcir@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: cibsen@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/

Mime
View raw message