1. Camel
  2. CAMEL-4978

Dead Letter Channel: add onError with correspondence to onRedelivery


    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.9.0
    • Fix Version/s: 2.16.0
    • Component/s: camel-core
    • Labels:
    • Estimated Complexity:


      When an error occurs there can be situation when some actions should be performed before next redelivery attempt. These actions can be custom logging (in case of Dead Letter Channel we don't have control on logger name and format), creating incident request in internal company system, etc.

      Current version of Dead Letter Channel provides support for specifying processor which is called when next redelivery attempt is performed. However, if delay between attempts is long, this can be too late.

      I think we can implement support for specifying processor which will be called when error occurs, e.g., onError property. Then this processor with information from provided Exchange can take appropriate actions. For example, it can save this message for further investigation, while Dead Letter Channel will keep going on redelivering it.

      If this feature is worth to be implemented, I can prepare a patch. I implemented a work-around in my current project using onRedelivery, but I don't like it because of latency in redelivery interval.


        Claus Ibsen made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Claus Ibsen [ davsclaus ]
        Fix Version/s 2.16.0 [ 12329391 ]
        Fix Version/s Future [ 12315692 ]
        Resolution Fixed [ 1 ]
        Claus Ibsen made changes -
        Estimated Complexity Novice [ 10061 ] Moderate [ 10062 ]
        Claus Ibsen made changes -
        Field Original Value New Value
        Labels features
        Fix Version/s Future [ 12315692 ]
        Affects Version/s 2.9.0 [ 12316374 ]
        Affects Version/s Future [ 12315692 ]
        Andrey Kazantsev created issue -


          • Assignee:
            Claus Ibsen
            Andrey Kazantsev
          • Votes:
            0 Vote for this issue
            1 Start watching this issue


            • Created: