Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-2943

RequestHandlerRetryAdvice wraps endpoint exception in a MessagingException, harder to do exception classifcation based retry

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 2.2.1
    • Fix Version/s: 3.0 RC1
    • Component/s: Core
    • Labels:

      Description

      When adding retry advice to an endpoint you probably want to retry for some exceptions and fail immediately for other ones.

      This is supported easily by RetryTemplate with the default BasicRetryPolicy which uses an exception classifier.

      However, the RetryCallback constructed by RequestHandlerRetryAdvice wraps the actual business exception thrown by the endpoint with a MessagingException, making the default configuration-only classification impossible.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                abilan Artem Bilan
                Reporter:
                assaf27 Assaf Berg
              • Votes:
                3 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: