Thanks all - I managed to get it working with this suggestion. I had to re-use the same Endpoint and ChoiceDefinition and just added .when(header("CamelFileName").isEqualTo("aFileName.txt").to(...) for each input.
Marco Westermann wrote: > > 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-tp4585994p4590059.html Sent from the Camel - Users mailing list archive at Nabble.com.