Hi,
what i see from https://issues.apache.org/jira/browse/CAMEL-2899 is that
maxMessagesPerPoll and sortBy option do not work well together for a
FileConsumer endpoint.
In our use-case we have several thousand files in a from("file:...") route. And
every minute we want to process one file sorted by name.
So we use the options: delay=60000&maxMessagesPerPoll=1&sortBy=file:name
But the way it seems to be implemented is:
- read one file from fileystem
- sort this file by name (so nothing happens here)
- process this file
The sortBy does not have any effect here, right?
Can someone propose another solution where we can have the files processed
sorted by-name and also control how fast they are processed?
Thanks,
Hartmut