Spring Integration
  1. Spring Integration
  2. INT-1843

Downloaded files are locked for the duration or FTP Inbound adapter process, thus can't be deleted

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.0.3
    • Fix Version/s: 2.2 M4 Sprint 4, 2.2 M4
    • Component/s: Adapters
    • Labels:
      None
    • Environment:
      Windows Server 2003, Tomcat 7, Spring Integration 2.0.3 and Spring Framework 3.

      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.

        Activity

        Hide
        Oleg Zhurakousky added a comment -

        We'll address it in 2.1. There is a related issue INT-1849 as well as related use case where we want to rename the file

        Show
        Oleg Zhurakousky added a comment - We'll address it in 2.1. There is a related issue INT-1849 as well as related use case where we want to rename the file
        Hide
        Oleg Zhurakousky added a comment -

        Re-classifying it to an Improvement

        Show
        Oleg Zhurakousky added a comment - Re-classifying it to an Improvement
        Hide
        Oleg Zhurakousky added a comment -

        Moving it to 2.2.M1 to align with the related issue

        Show
        Oleg Zhurakousky added a comment - Moving it to 2.2.M1 to align with the related issue
        Hide
        Oleg Zhurakousky added a comment -

        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>
        
        Show
        Oleg Zhurakousky added a comment - 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>

          People

          • Assignee:
            Oleg Zhurakousky
            Reporter:
            Bobby Fisher
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: