Re: Route in a loop

2012-05-29 Thread Claus Ibsen
On Mon, May 28, 2012 at 12:51 PM, Charpente wrote: > With your experience, don't you know a better to achieve my "split"?? > I would try to have 1 route with 1 splitter, and instead of the hardcoded number in the xpath expression, use a token or some sort, so the splitter splits on any of the num

Re: Route in a loop

2012-05-28 Thread Charpente
With your experience, don't you know a better to achieve my "split"?? Benoit -- View this message in context: http://camel.465427.n5.nabble.com/Route-in-a-loop-tp5713621p5713633.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Route in a loop

2012-05-28 Thread Charpente
This is a very very simple example of my xml file: >Split1 test Split2 test

Re: Route in a loop

2012-05-28 Thread Claus Ibsen
On Mon, May 28, 2012 at 12:04 PM, Charpente wrote: > First of all thanks for your response Claus > > I followed your modification, so i have modified my code : > > from("file:test_routage_messages/dossier_cible/editeur/EA/versions/6.5/?noop=true").to("direct:split"); > > for(int i=0; i numbers of

Re: Route in a loop

2012-05-28 Thread Charpente
First of all thanks for your response Claus I followed your modification, so i have modified my code : from("file:test_routage_messages/dossier_cible/editeur/EA/versions/6.5/?noop=true").to("direct:split"); for(int i=0; ihttp://camel.465427.n5.nabble.com/Route-in-a-loop-t

Re: Route in a loop

2012-05-28 Thread Claus Ibsen
Hi The file component does not support multiple routes with the same uri. If you need 5 different splitters, then you may want to have 1 file route, and 5 splitter routes, and connect them with the direct endpoint. from file to direct split-me for loop { from direct split-me split } O