Re: Route in a loop

2012-05-29 Thread Claus Ibsen
splits on any of the numbers. Then you can afterwards check the splitted message, and extract that part to get the actual number, you can use for knowing which file name to use for writing/appending to the files. > Benoit > > -- > View this message in context: > http://camel.

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
est Now i have in my file "splits", 2 files (1.xml and 2.xml). In 1.xml, we have: >Split1 test And in 2.xml, we have Split2 test So it works well. Thank you Claus -- View this message in context: http://camel.465427.n5.nabble.com/Route-in-a-loop-tp5713621p5

Re: Route in a loop

2012-05-28 Thread Claus Ibsen
ersions/6.5/splits/?fileName="+nomElement+".xml"); > } > > But i have the same problem: > > Caused by: org.apache.camel.FailedToStartRouteException: Failed to start > route route3 because of Multiple consumers for the same endpoint is not > allowed: Endpoint[dir

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

Re: Route in a loop

2012-05-28 Thread Claus Ibsen
} On Mon, May 28, 2012 at 11:06 AM, Charpente wrote: > Hi all, > > I'm using Camel 2.8.0. > > I have a simple route in a loop which realize a split with the attribute of > a tag: > > for(int i=0; i<5; i++) > { > >    from("file:message1.xml?noop=tru

Route in a loop

2012-05-28 Thread Charpente
Hi all, I'm using Camel 2.8.0. I have a simple route in a loop which realize a split with the attribute of a tag: for(int i=0; i<5; i++) { from("file:message1.xml?noop=true") .split(ns.xpath("xmi:XMI