Hi 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 Camel. 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 .bean("ref:myBeanName?method=method1"); On Thu, May 2, 2013 at 4:36 PM, Bovas <bovas.t...@gmail.com> 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: > http://camel.465427.n5.nabble.com/bean-collections-in-parameters-groovy-tp5731778p5731919.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: cib...@redhat.com Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen