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: Route in a loop
Date Tue, 29 May 2012 08:32:55 GMT
On Mon, May 28, 2012 at 12:51 PM, Charpente <charpente.benoit@gmail.com> 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 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.465427.n5.nabble.com/Route-in-a-loop-tp5713621p5713633.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message