Announcement Announcement Module
No announcement yet.
ftp-outbound-adapter interceptor Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • ftp-outbound-adapter interceptor

    Hi all,
    I'm using ftp-outbound-adapter to send ftp file on a remote directory. I need to update a table into the DB only if the file is successfully sent. How to?
    Channel interceptor, if I understand it correctly, doesn't resolve this use case.

  • #2
    Well, you CAN use channel interceptor (postSend) for now, however i would clearly state that it would be a temporary workaround.
    What we need to do is expose ftp:outbound-gateway. This would allow us to generate a response (e.g., ftp status code) which you can use to determine what further action should be taken (in your case you would do a write to a db).

    Could you please create an feature request in JIRA (if you don't have an account create one). This way you'd be notified when it is done, or let us know and we create one for you and you can add yourself as a watcher.


    • #3
      You can also consider ordered subscribers to a <publish-subscribe-channel/>, as long as the channel is synchronous, or runs with an executor with a single thread, the second consumer (by default) will only receive the message if the first consumer is successful.


      • #4


        you can set the "failover" flag to false, on the consumer channel.
        In this way, all Exceptions will be throws out ftp-outbound-adapter by the client. (eg access failed, banned server ..)
        Then you can resolved with simple try-catch block on client.

        Bye !