[ 
https://issues.apache.org/activemq/browse/CAMEL-1112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47591#action_47591
 ] 

Claus Ibsen commented on CAMEL-1112:
------------------------------------

I had sort of planned to do some refactorings of the file consumer in 2.0 so it 
would gather the list of files to consume before consuming. This would allow to 
resort the list based on certain out-of-the-box settings and of course also 
allow end users to provide their own sorting implementation. And also filter 
and finnaly to have a headers with total number of files and the current file 
number.

In summary:
- sorting
- filtering
- headers with index and total number of files

> add orderby to file/ftp/sftp component to get files in a reliable order (e.g. 
> created date)
> -------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1112
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1112
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 1.5.0
>         Environment: Windows XP, JDK 1.5, Apache Camel 1.5
>            Reporter: Dario Sanna
>             Fix For: 2.0.0
>
>
> when reading files from file,ftp/sftp component, it is often neccesarry to 
> get the files in a predifined order (e.g. created date or filename).
> to solve this, an extra uri parameter could be used, to set the order of 
> files beeing processed.
> ordering can be done after reading the file-list.
> i know this can also be solved by applying a resequencer pattern in the 
> route, but i think for large files it would be hard to apply this.
> also a processing in an created date order would be more natural.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to