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?

Best,
Christian

On Wed, Sep 19, 2012 at 3:27 PM, Bilgin Ibryam <bibr...@gmail.com> 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
>



--

Reply via email to