camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claudio R <user...@yahoo.com.br>
Subject Is there any way to limit the size of the FTP listing each poll of FTPConsumer?
Date Wed, 12 Aug 2015 20:29:25 GMT
Hi,
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)

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