Announcement Announcement Module
Collapse
No announcement yet.
How do I treat errors in tcp-outbound-channel-adapter Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

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

    Comment


    • #3
      Sorry - wrong thread.
      Last edited by Gary Russell; Jan 29th, 2013, 10:32 AM.

      Comment

      Working...
      X