camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Müller <>
Subject Re: Fetching two files from FTP at the same time
Date Wed, 19 Sep 2012 17:02:43 GMT
The FTP (and file) component fetch one file after the other. If you can
distinguish between both files, you could write two routes where each route
only consume one file type and send it to the same aggregator. Would that
work for you?


On Wed, Sep 19, 2012 at 3:27 PM, Bilgin Ibryam <> wrote:

> Hi all,
> I've to fetch two files from an ftp server at the same time and merge them
> into one message for further processing.
> The merging part is easy by using an aggregator, but is there a way to
> ensure that both files are read from the ftl folder at the same moment?
> The reason for that is there is another process which writes to the ftp
> folder and replaces old files with new ones every couple of seconds. So it
> is possible that the second file is updated while the first file is being
> processed by the ftp consumer and thus  both messages being out of sync.
> Any suggestion how to approach it?
> Thanks
> Bilgin


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message