Spring Integration
  1. Spring Integration
  2. INT-1623

Add support for 'errorChannel' on MessagingGatewaySupport

    Details

    • Type: Refactoring Refactoring
    • Status: Closed
    • Priority: Major Major
    • Resolution: Complete
    • Affects Version/s: 2.0 RC2
    • Fix Version/s: 2.0 Final
    • Component/s: Core
    • Labels:
      None

      Description

      This will replace the 'exceptionMapper' while providing a superset of its functionality. In fact, it should also replace the 'shouldThrowErrors' flag.

      The general idea is to provide an "errorChannel" at the gateway level to act as a "catch all" for any Exceptions that would otherwise have propagated back across the inbound adapter "edge" of the system.

      This should support all options for error handling:
      1. rethrow to caller: simply do not provide an errorChannel (this is the default).
      2. suppress and/or log: specify "nullChannel" as the error channel.
      3. map the Exception to a valid reply Message: use any messaging flow you'd like on the other side of the specified error channel.
      4. handle asynchronously and return/rethrow nothing: provide a one-way downstream flow on the other side of the error channel.

        Issue Links

          Activity

          Hide
          Mark Fisher added a comment -

          Assigning this to you Gary, since you are updating some of the other adapters.

          Show
          Mark Fisher added a comment - Assigning this to you Gary, since you are updating some of the other adapters.
          Hide
          Gary Russell added a comment -

          Added schema and parser support for TCP/IP gateway

          Show
          Gary Russell added a comment - Added schema and parser support for TCP/IP gateway

            People

            • Assignee:
              Gary Russell
              Reporter:
              Mark Fisher
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: