Results 1 to 5 of 5

Thread: ftp outbound adapter : how to delete local files after sending completed

  1. #1
    Join Date
    Apr 2007
    Posts
    29

    Question ftp outbound adapter : how to delete local files after sending completed

    Hi !

    The title seems clear
    I would want to delete the local files that was sended by ftp-outbound-adapter, but I don't find any attribute that sounds like delete-local-files = "true".

    Any help ?

    Thanks
    Gabe

  2. #2
    Join Date
    Jan 2009
    Location
    Ukraine, Kharkov
    Posts
    635

    Default

    Hi!

    How about this one:
    HTML Code:
    <ftp:outbound-channel-adapter>
           <ftp:request-handler-advice-chain>
    	     <bean class="org.springframework.integration.handler.advice.ExpressionEvaluatingRequestHandlerAdvice">
    			<property name="onSuccessExpression" value="payload.delete()" />
    	      </bean>
    	</ftp:request-handler-advice-chain>
    </ftp:outbound-channel-adapter>
    ?

    Take care,
    Artem

  3. #3
    Join Date
    Apr 2007
    Posts
    29

    Default

    Great ! It works fine. Thank you.
    Where can I find documentation about <ftp:request-handler-advice-chain> ? I didn't know this tag.

  4. #4
    Join Date
    Jan 2009
    Location
    Ukraine, Kharkov
    Posts
    635

  5. #5
    Join Date
    Apr 2007
    Posts
    29

    Default

    Fortunately I upgraded to 2.2.0 yesterday !
    Thank you again Cleric.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •