No, sortBy appears to act on files rather than file contents.  The
examples under the file component include sortBy=file:name and
sortBy=reverse:file:name.

sortBy uses the File Language
(http://camel.apache.org/file-language.html), which includes
"file:modified" as an option for specifying the file's last modified
date.

Don

On Fri, Jul 15, 2011 at 1:29 PM, johncarlguthrie
<johncarlguth...@gmail.com> wrote:
> Is there a way to determine which file is picked up by a route first when
> there are several files in a directory? I looked into sortby and Sort, but
> those seem to be for arranging the content of a single message/file, which
> is not what I want. I am working on a Spring/Camel application that picks up
> any file put into a certain directory for processing. The order of
> processing is important, we need to always process the oldest file
> (timestamp oldest) first. Any advice is appreciated.
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Way-to-have-Camel-process-files-in-timestamp-order-tp4591558p4591558.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Reply via email to