Announcement Announcement Module
Collapse
No announcement yet.
ftp outbound adapter : how to delete local files after sending completed Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment


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

      Comment


      • #4
        http://static.springsource.org/sprin...r-advice-chain
        and follow with XSD and sources

        Comment


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

          Comment

          Working...
          X