On Thu, Sep 20, 2012 at 10:50 AM, kikou1984 <hichem.ouesl...@atos.net> wrote: > Hi , > > i understood , i used the split like this : > > try { > context.addRoutes( new RouteBuilder() { > public void configure() { > from("file:///D:/fileCamel/in?noop=true") > // .bean(InitConcardisBean.class,"initialisation") > .setHeader("TransactionClass",constant("net.awl.bfi.fluxRemisesConcardis.CorpsRemiseCB2AConcadis")) > .bean(MappingCB2ABean.class,"mapCb2acinObj2") > .split().method(EclatCCTIBean.class,"eclatCCTI"). > bean(EclatDBCRBean.class,"eclatDBCR"). > > bean(FormatLstCB2ABean.class,"refactCB2ADebCreBean"). > bean(RefactCB2ABean.class,"refactCB2A"); > bean(MappingUDKBean.class,"mapUdkInObj"). > bean(MappingUDKBean.class,"makeFlatUDK"). > > to("file:///D:/fileCamel/Sortie?fileName=firstUDK.txt"); > > Then , the bean : EclatCCTIBean.class will dispatch the ArrayList <ArrayList > <ClassA>> in 5 ArrayList <ClassA> to the Bean 'EclatDBCRBean.class', but i > want to execute five time the chain from EclatDBCRBean to MappingUDKBean > with the 5 ArrayList <ClassA> from ArrayList <ArrayList <ClassA>>. > > And it doesn't work !! if u can help me I would be grateful. >
I dont think people understand what you really want. Do you want to do like a for loop 5 times, or do you want to split a message into smaller messages? There is a loop eip as well. And if you use the copy option then it uses the same input each time. Alternative just write a java bean and call the other java beans yourself. Then its just java code. > thxs > > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Com-between-beans-tp5719646p5719657.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