Results 1 to 3 of 3

Thread: How do I treat errors in tcp-outbound-channel-adapter

  1. #1

    Default How do I treat errors in tcp-outbound-channel-adapter

    I'm using tcp-outbound-channel-adapter to send data through a sockets, but i can't get errros/exception from this channel.

    I'm already using errorChannel in tcp-inbound-channel-adapter:
    Code:
    <int-ip:tcp-inbound-channel-adapter
            id="inAdapter.server"
            channel="toSA"
            connection-factory="serverFactory"
            error-channel="errorChannel" />
    and it works pretty well.

    I already try to put a errorChannel for tcp-outbound(...) but this property does not exists.
    So how can I handle this errors?

    Spring version: 3.0
    Spring integration version: 2.2
    Thanks.

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

    Default

    You put the error-channel on whatever is the entry point to your application (gateway etc).

    Or, you can use the ExpressionEvaluatingMessageHandlerAdvice as discussed here http://blog.springsource.org/2012/10...etry-and-more/.
    Gary P. Russell
    Spring Integration Team
    SpringSource, a division of VMware

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

    Default

    Sorry - wrong thread.
    Last edited by Gary Russell; Jan 29th, 2013 at 09:32 AM.
    Gary P. Russell
    Spring Integration Team
    SpringSource, a division of VMware

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
  •