[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Filtering with File component again

Hello everyone,
I have a use case that is a little bit different from my last post with the
File component.

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
3)If a file name does not end with .xml, it should not be processed or be
Only files that ends with .xml should be processed.
below is the extract of my route.

public void configure() throws Exception {

                   .log("XML loan processed: ${header.camelFileName}")


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?