camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claudio R <>
Subject Re: Is there any way to limit the size of the FTP listing each poll of FTPConsumer?
Date Thu, 13 Aug 2015 13:46:59 GMT
Hi Pontus,
Thank you very much for your reply.Yesterday I found this parameter after post the question.

     Em Quinta-feira, 13 de Agosto de 2015 5:36, Pontus Ullgren <>

Since the FTP component inherits the options from the File component you can use the maxMessagesPerPoll
URI option to control how many files are consumed for each poll.
// Pontus
On Wed, 12 Aug 2015 at 23:03 Claudio R <> wrote:

I'm using the FTPConsumer. In FTP, each xml file has the name nyyyyMMddHHmm.xml, where yyyy
is the year, MM is the month, dd is the day, HH is the hour and mm is the minute.The processing
of the file uses the file name sorting in descending order. For a list of files: n201508110801.xml,
n201508110802.xml, n201508110803.xml. The n201508110803.xml file is the first file to be processed,
the n201508110802.xml file will be the second and n201508110801.xml file is the last file
being processed. Consider that the process has started and the processing each file takes
10 minutes (slow processing). After 20 seconds of processing, it is available on the FTP the
n201508110804.xml file.
I would like the n201508110804.xml file to be processed shortly after n201508110803.xml file.
In my tests, the n201508110804.xml file is processed only after processing the file n201508110801.xml.
Is there any way of the FTPConsumer catch a new FTP listing after each file processing? 
Is there any way to limit the size of the FTP listing each poll of FTPConsumer? (as top in
select of database)

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