Results 1 to 3 of 3

Thread: Success Messages/Events

  1. #1
    Join Date
    Dec 2008
    Location
    belfast
    Posts
    2

    Default Success Messages/Events

    All,
    i've got a nice integration config all set up but with one 'hole'. the last outbound channel is to FTP and what i'm trying to determine is if the FTP is successful how can i be notified? What i need to do it update a table once an FTP completes. I can handle problems via the errorChannel but i just can see how to get success messages/notifications? Any ideas?
    Cheers
    Martin

  2. #2
    Join Date
    Mar 2010
    Location
    Gtr Philadelphia, PA
    Posts
    2,015

    Default

    2 ways:

    A.

    1. Make the final channel before the FTP adapter a <publish-subscribe-channel />
    2. Subscribe the FTP adapter and, say, a <service-activator /> to the channel. Put an "order" attribute on each (1 on FTP, 2 on the service activator).

    B.

    Instead of a pub-sub channel, use a <recipient-list-router/> (with the ignore-send-failures attribute set to its default 'false').


    In both cases, the message will be sent to the second subscriber only if the send to FTP is successful.
    Gary P. Russell
    Spring Integration Team
    SpringSource, a division of VMware

  3. #3
    Join Date
    Dec 2008
    Location
    belfast
    Posts
    2

    Default

    Gary - thanks for that - i'll give that a whirl this evening.
    Martin

Tags for this Thread

Posting Permissions

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