camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Com between beans
Date Fri, 21 Sep 2012 08:01:01 GMT
What do you bean's do with the message? If they modify it then that
can affect the splitter.
I suggest to try with beans that does nothing. Maybe just log, so you
can see what happens.

On Fri, Sep 21, 2012 at 9:43 AM, kikou1984 <hichem.oueslati@atos.net> wrote:
> -> 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.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message