Thanks Claus, I thought there might be a configuration somewhere to make
Camel share the producer between the two routes, but if I have to code that
myself in my endpoint, then so be it.
Thanks for the help.
Claus Ibsen-2 wrote:
>
> On Wed, Apr 20, 2011 at 10:20 AM, andrew.cowper
you'll loose the
> configuration for subsequent routes (as well as causing other issues I
> imagine). Instead, I'd try to use a static (thread-safe) reference to
> your datasource in your custom Producer class that can be shared across
> instances.
>
>
> andrew.cowp
Hi -
I have written a Component/Endpoint/Producer/Consumer set for my datasource.
I am trying to have two routes which go to the same producer. Camel is
creating two instances of the Producer though.
How do I stop it doing that? Do I have to write code in my EndPoint to cache
the Producer, and