camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kikou1984 <hichem.ouesl...@atos.net>
Subject Re: Com between beans
Date Thu, 20 Sep 2012 09:48:51 GMT
Thank you for u r answer.

I ll explain more :) 
Here the data :


EclatCCTIBean.class -> public static ArrayList <ArrayList <ClassA>>
eclatCCTI(Exchange exchange) 
EclatDBCRBean.class -> ArrayList <ClassA> lstTransac = (ArrayList <ClassA>)
exchange.getIn().getBody();

Suppose that the first Bean contains 5 elements of ArrayList <ClassA>.
1 - 2 - 3 - 4 - 5.

I want to execute like this.

First Element make enter to this route: 
                              bean(EclatDBCRBean.class,"eclatDBCR"). 
                             
bean(FormatLstCB2ABean.class,"refactCB2ADebCreBean"). 
                              bean(RefactCB2ABean.class,"refactCB2A"); 
                              bean(MappingUDKBean.class,"mapUdkInObj"). 
                              bean(MappingUDKBean.class,"makeFlatUDK"). 
Then , the second element enter to this route :
                              bean(EclatDBCRBean.class,"eclatDBCR"). 
                             
bean(FormatLstCB2ABean.class,"refactCB2ADebCreBean"). 
                              bean(RefactCB2ABean.class,"refactCB2A"); 
                              bean(MappingUDKBean.class,"mapUdkInObj"). 
                              bean(MappingUDKBean.class,"makeFlatUDK"). 


Like this 3 4 5  for each element of ArrayList <ArrayList <ClassA>>.

That's why i made the split at EclatCCTIBean, i thought that the split will
decompose the  ArrayList <ArrayList <ClassA>> into element ArrayList
<ClassA> then i can get in 
                              bean(EclatDBCRBean.class,"eclatDBCR"). 
                             
bean(FormatLstCB2ABean.class,"refactCB2ADebCreBean"). 
                              bean(RefactCB2ABean.class,"refactCB2A"); 
                              bean(MappingUDKBean.class,"mapUdkInObj"). 
                              bean(MappingUDKBean.class,"makeFlatUDK"). 

Where can i put the loop? 

Thank you in advance



--
View this message in context: http://camel.465427.n5.nabble.com/Com-between-beans-tp5719646p5719660.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message