Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-15124

error-handler-builder: allow to reference processors by name

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5.0
    • Component/s: camel-core
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      DefaultErrorHandlerBuilder and the other ErrorHandlerBuilders have the following fields:

      public class DefaultErrorHandlerBuilder extends ErrorHandlerBuilderSupport {
          protected CamelLogger logger;
          protected RedeliveryPolicy redeliveryPolicy;
          protected Processor onRedelivery;
          protected Predicate retryWhile;
          protected String retryWhileRef;
          protected Processor failureProcessor;
          protected Endpoint deadLetter;
          protected String deadLetterUri;
          protected boolean deadLetterHandleNewException = true;
          protected boolean useOriginalMessage;
          protected boolean useOriginalBody;
          protected boolean asyncDelayedRedelivery;
          protected String executorServiceRef;
          protected ScheduledExecutorService executorService;
          protected Processor onPrepareFailure;
          protected Processor onExceptionOccurred;
      
          public DefaultErrorHandlerBuilder() {
          }
      

      so there's no xyxRef as example, there's no onExceptionOccurredRef however it looks like those refs are available with spring xml (and probably blueprint) so wonder if we can add the refs on the ErrorHandlerBuilder.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gnodet Guillaume Nodet
                Reporter:
                lb Luca Burgazzoli
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: