I am wondering if mule file connector always polls the source directory, or if this behavior can be overridden.
I configured an end point to read a file from FTP location using file connector and then process it. But my requirement is that the file should be read only when requested, for example when endpoint is called from Java. By controlling this behavior I can call endpoint point at the end of day and read all files placed at source during the day.
But mule keeps on polling the source location and downloads the file as soon as it is placed at the source. I tried to see if I can achieve my desired behavior by service override, but it does not seem obvious that it is possible.
Is there a different way to read a file from the source or can polling behavior be overridden in mule?
You can achieve this is by following approaches
Hope this helps.