This looks like the way to go, but it is a shame that I have to create this
logic, simply cause all my test data live in the same directory.
My concern is the fact that the amount of "from uri's" can vary - is there
another way of achieving the same as below without aggregating it like
below?
Marco Westermann wrote:
>
> Hi,
>
> couldn't you process the files by using a content based router at the
> filepolling endpoint? Sth like
>
>
> from("file:directory")
> .choice()
> .when(header("filename").isEqualTo("a.txt"))
> .to("direct:a")
> .when(header("filename").isEqualTo("b.txt"))
> .to("direct:b")
> .otherwise()
> .to("direct:unknown");
>
>
--
View this message in context:
http://camel.465427.n5.nabble.com/Loading-multiple-files-from-the-same-directory-tp4585994p4586689.html
Sent from the Camel - Users mailing list archive at Nabble.com.