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: Singleton Endpoint Question
Date Sat, 01 Dec 2012 11:50:27 GMT
On Fri, Nov 30, 2012 at 6:01 PM, gilboy <josephotoole@gmail.com> wrote:
> Hi
>
> If an endpoint is defined to be a singleton and you have 2 camel routes both
> referencing the same endpoint URI, will camel call endpoint.createConsumer()
> once or twice?
>

Twice.

Each route needs their own consumer, so createConsumer is always invoked.

If the endpoint is singleton, then they use the same instance of the endpoint.
If the endpoint is not singleton, then a new endpoint instance is
always created when needed.


> Thanks
> Joe
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Singleton-Endpoint-Question-tp5723464.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message