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 Fri, 21 Sep 2012 07:43:18 GMT
-> Sending another chaotic 

I will explain the problem as easily as possible :

                      public void configure() {
                           from("file:///D:/fileCamel/in?noop=true")
                           .bean(First.class,"First")        
                          
.split().method(XX.class,"DO").to("direct:THERE");
                           
                           from("direct:THERE").
                           bean(A.class,"Toto").
                           bean(B.class,"Tata").
                           bean(C.class,"Titi").
                           bean(D.class,"Tutu").
                           bean(E.class,"Tyty").
                          
to("file:///D:/fileCamel/Sortie?fileName=firstUDK.txt");

                           };                           
                      });

When i execute this code , the bean XX make a split and go to the route
"THERE".
We suppose that the split send 5 ArrayList to the route "THERE".

I expect that when the code get into the route "THERE", the sequence of Bean
will be {A,B,C,D,E},{A,B,C,D,E},{A,B,C,D,E},{A,B,C,D,E},{A,B,C,D,E}.

But unfortunately, the sequence is like this with this code : {
A,A,,A,A,A,B,C,D,E}.

am I  more clear now ?

 
 



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

Mime
View raw message