Description

Files downloaded to local folder by FTP Inbound Channel Adapter are not getting deleted after being processed - the file(s) is/are marked for deletion and are deleted only upon Tomcat recycle. This is particularly an issue when the file being pulled from the FTP server always has the same file name. Since, the file downloaded is not deleted, new files posted on the FTP server are not getting retrieved from further polls.

Oleg Zhurakousky
added a comment - 08/Aug/12 10:03 PM Resolving it as duplicate since its fixed as part of INT-1849 . All you need to do is add pseudo-transactional element to the poller and deleting the file with a simple expression as such
<int:poller . . . >
<int:psuedo-transactional on-success-expression="payload.delete()"
on-success-result-channel="nullChannel"/>
</int:poller>