camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CAMEL-1234) Custom processing of Exchange before redelivery using DeadLetterChannel
Date Thu, 08 Jan 2009 10:26:59 GMT

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

Claus Ibsen commented on CAMEL-1234:
------------------------------------

I think we need to introduce a new DSL for this to seperate it from onException and so it
can be used without the need for onException

Something like this:
{code}
onRedeliver().to("bean:whenWeRedeliver").to("log:myLogBeforeRedeliver");
{code}

We can also add the predicate and even the thrown exception type to narrow down when its to
be exectued - damm this is advanced

{code}
onRedeliver(IOException.class).to("bean:whenWeRedeliver").to("log:myLogBeforeRedeliver");
{code}

{code}
onRedeliver().when(header("goldcustomer")).to("bean:redeliverGoldCustomer");
{code}

But I guess this stuff might be a bit to advanced and overkill, the general use case is probably
in some cases to be able to do a little custom processing before we attempt again.

It could also support scopes
- global
- per route

As we do with onException

Then you can have different behavior in different routes.

> Custom processing of Exchange before redelivery using DeadLetterChannel
> -----------------------------------------------------------------------
>
>                 Key: CAMEL-1234
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1234
>             Project: Apache Camel
>          Issue Type: New Feature
>          Components: camel-core
>    Affects Versions: 1.5.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.0.0
>
>
> We should provide a out-of-the-box solution to allow end users to do some custom processing
before DLC is attempting a redelivery on a given endpoint. The custom processing should only
be executed once per redelivery.
> Using the interceptor solution on the DLC wiki page will kick in for the remainder of
the routing for redelivered exchanges, forcing end users to keep track that they only modify
the exchange once per redelivery.
> The custom processing could be a detour route path

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message