I have a Mule flow that contains the following inbound endpoint:
<inbound-endpoint address="${source.address}" doc:name="readInputGeneric0" mimeType="text/xml">
<properties>
<spring:entry key="pollingFrequency" value="${source.polling_frequency}" />
<spring:entry key="fileAge" value="${source.fileAge}" />
<spring:entry key="workDirectory" value="${work.address}" />
</properties>
</inbound-endpoint>
In production, the source.address property points to an ftp server, and source.fileAge property's value is 20000. Normally everything works ok. However, it's the second time in about two months, that I notice that the files on the ftp folder are not being read. To fix it I have to remove the fileAge property (I also tried to set it to 0, but it didn't work). The problem, is that I need the fileAge to ensure that a file is not being read while it's still being written. Any suggestions are welcome.