Reputation: 115
I have a new requirement in Apache camel where I need to read a file from an FTP location which contains the file name another file in the same FTP location. So I need to read the first file get the file name and read the second file name. How do we achieve in Apache camel?
Upvotes: 0
Views: 756
Reputation: 3349
You can write a simple FTP route that consumes the first file (that contains the target file name). Once this file is read, you can forward the content to a route builder, where you build the other FTP route that will consume the target file.
You can make use of the FTP component include option to specify the pattern of the files names to consume.
Upvotes: 1