Hi,
I tried this code :
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")
//.bean(EclatCCTIBean.class,"eclatCCTI")
.split().method(EclatCCTIBean.class,"eclatCCTI").to("direct:echainement");
from("direct:echainement").
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");
In my exemple, i got 5 elements , unfortunately, the bean EclatDBCRBean is
executed 5 times, but i want all the bloc :
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");
be executed 5 times.
I know It missing a little something :S
Thxs for u r help
--
View this message in context:
http://camel.465427.n5.nabble.com/Com-between-beans-tp5719646p5719673.html
Sent from the Camel - Users mailing list archive at Nabble.com.