camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: bean, collections in parameters - groovy
Date Fri, 03 May 2013 05:25:01 GMT

Is it the same map instance you want to use? If you register it in the
Camel registry, then Camel will use the same instance, as it just
lookup the instance by the name you assigned to it, when it was added
to the registry.

You can also use the same bean instance and have the bean with a
shared map. After all this is just java/groovy code. So you can do
whatever you can do in regular java/groovy language as well with

If you want to use the same bean, then you may want to register it as
well in the registry, and then refer to the bean


On Thu, May 2, 2013 at 4:36 PM, Bovas <> wrote:
> Thanks Claus for your answer.
> I do another way, I create a fonction which return my map (like Christian
> said, thanks to you Christian).
> But now I just search how I could use my map in another file.
> i.e =>
> 1) from(file1)
> bean(function1) function which returns a map
> 2) from(file2)
> bean(function2) which uses the map from 1)
> I think I should use Aggregator, unify file 1 and 2, then use my functions?
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Red Hat, Inc.
FuseSource is now part of Red Hat
Twitter: davsclaus
Author of Camel in Action:

View raw message