I think your function should return the map. Sent from a mobile device Am 30.04.2013 10:12 schrieb "Bovas" <bovas.t...@gmail.com>:
> Hi > > I use the Groovy DSL, Apache Camel 2.11.0. > I have a problem when I put a Map or a List in parameters in a bean. > > I declared à map : > *def mymap= [:] > mymap["Mode"]="Zip" > mymap["test"]="test"* > > my route : > *from("file://path") > .to("bean://myclass?method=myFonction(${mymap})")* > > how looks my fonction in my class /myclass/ > I just display the values of my map : > *public void myFonction(def mymap){ > println mymap > }* > > When i display my map before the method myFonction, it displays : > [Mode:Zip, test:test] > > but when i displays in the call of my method, it displays : > [Mode:Zip > > I don't understand, maybe the comma makes the error. > > I already try differents ways : > .bean(new Myclass(),"myFonction(${mymap})") > myFonction("+mymap+") > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/bean-collections-in-parameters-groovy-tp5731778.html > Sent from the Camel - Users mailing list archive at Nabble.com. >