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

OnException with handled and no further processing should not send the message to the error handler

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Not A Problem
    • None
    • 2.10.0
    • camel-core
    • None
    • Unknown

    Description

      See nabble
      http://camel.465427.n5.nabble.com/Inconsistent-onException-behaviour-tp5541356p5541356.html

      Having

                      errorHandler(deadLetterChannel("mock:error"));
      
                      onException(Exception.class)
                          .handled(true);
      

      Should not route message to the DLC as the onException is handling the failure.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: