You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2015/05/04 19:22:07 UTC

[jira] [Commented] (CAMEL-8740) DeadLetterChannel - Add SPI so custom components can prepare message for DLC

    [ https://issues.apache.org/jira/browse/CAMEL-8740?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14526886#comment-14526886 ] 

Claus Ibsen commented on CAMEL-8740:
------------------------------------

We have ExchangeFailureHandledEvent which is an event when an Exchange was failed such as sent to a DLQ or just failed without DLQ. But this event happens after sending to the DQL.

So we could consider having an event *before*, then the custom components can register an event lister and just react when that event happens.


> DeadLetterChannel - Add SPI so custom components can prepare message for DLC
> ----------------------------------------------------------------------------
>
>                 Key: CAMEL-8740
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8740
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-core
>            Reporter: Claus Ibsen
>             Fix For: 2.16.0
>
>
> When you use Camel's DLC as error queue, then when a message is moved to the DLQ, you may want to do some custom adjustment to the message before that happens.
> As an end user you have the onPrepare where you can do that.
> But for various Camel components then they may want to be able to hook in and be able to do some work.
> For example you may may want to configure camel-jms or activemq-camel to store the caused exception message and stacktrace as JMS headers so they are avalable on the JMS queue. Also for ActiveMQ we want to allow it to store the original destination property so AMQ broker knows which original JMS message the message was consumed from. This makes redelivery from the web console or JMX easier, as its a click on a button.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)