You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2009/01/07 17:43:05 UTC
[jira] Created: (CAMEL-1234) Custom processing of Exchange before
redelivery using DeadLetterChannel
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.
[jira] Updated: (CAMEL-1234) Custom processing of Exchange before
redelivery using DeadLetterChannel
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-1234:
-------------------------------
Fix Version/s: 1.5.1
> 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: 1.5.1, 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.
[jira] Commented: (CAMEL-1234) Custom processing of Exchange before
redelivery using DeadLetterChannel
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=48537#action_48537 ]
Claus Ibsen commented on CAMEL-1234:
------------------------------------
See nabble
http://www.nabble.com/Two-questions%3A-Stopping-Camel-and-intercept-before-retry-to21323127s22882.html
> 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.
[jira] Commented: (CAMEL-1234) Custom processing of Exchange before
redelivery using DeadLetterChannel
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Commented: (CAMEL-1234) Custom processing of Exchange before
redelivery using DeadLetterChannel
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=48566#action_48566 ]
Claus Ibsen commented on CAMEL-1234:
------------------------------------
Ah the above requires a bit of code as DLC needs to have a strategy to pick the correct onRedelivery as well as it does for onException.
And it can get messy if during redeliver you have a complex route and it also throws an exception. What should now happens?
So I am gonna make a simpler solution where you can declare on onRedelivery Processor on the DLC that it invokes before redeliery. Then you can do a bit of custom alternation of the exchange before its resend. This covers most use-cases.
If the above is requested by end users we can take another look later.
> 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.
[jira] Commented: (CAMEL-1234) Custom processing of Exchange before
redelivery using DeadLetterChannel
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=48553#action_48553 ]
Claus Ibsen commented on CAMEL-1234:
------------------------------------
This needs to be a new feature.
* onException is a failure processor and is invoked instead of doing redelivery. So you can alter routes in case a given exception is thrown
* intercept() kinda worked, but intercept doesn't sit between each and every node in the route graph.
Best option is to build in into the DeadLetterChannel as its the orchestrator of doing redelivery.
> 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.
[jira] Resolved: (CAMEL-1234) Custom processing of Exchange before
redelivery using DeadLetterChannel
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-1234.
--------------------------------
Resolution: Fixed
Updated wiki page for Dead Letter Channel with doc how to use it and a sample
The Spring DSL sample is about the same to set the onRedelivery option to ref a Processor.
> 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.