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

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.5.0
    • camel-core
    • None
    • 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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment