Hello everyone, I have a use case that is a little bit different from my last post with the File component. https://mail.google.com/mail/u/0/#label/apache-camel/161b75aa802e2f9f
In this case, the requirements are: 1) The route will pool a source folder and takes only files whose name ends with .xml 2) The source file content must be saved into a single journal file named loan.xml 3)If a file name does not end with .xml, it should not be processed or be removed. Only files that ends with .xml should be processed. below is the extract of my route. public void configure() throws Exception { from("file:loans") .choice() .when(header("CamelFileName").endsWith(".xml")) .log("XML loan processed: ${header.camelFileName}") .to("file:loans/results?fileName=loan.txt&fileExist=Append") I don't know yet how to handle the second part so that files with no .xml extension are left in the loans folders. Any idea? Thanks, Meissa