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-1799) Spring DSL - Add error handler DSL support so we avoid having to use spring bean style
Date Sat, 27 Mar 2010 16:07:08 GMT

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

Claus Ibsen commented on CAMEL-1799:
------------------------------------

Which should simply just be
{code:xml}
<errorHandler id="myEH" type="DeadLetterChannel" deadLetterUri="log:dead">
    <redeliveryPolicy maximumRedeliveries="2" redeliveryDelay="1000"/>
</errorHandler>
{code}

And I wonder if we can make the {{type}} default to be *DefaultErrorHandler* then its even
easier to configure for default use cases

> Spring DSL - Add error handler DSL support so we avoid having to use spring bean style
> --------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1799
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1799
>             Project: Apache Camel
>          Issue Type: New Feature
>          Components: camel-spring
>    Affects Versions: 2.0-M2
>            Reporter: Claus Ibsen
>            Assignee: Willem Jiang
>             Fix For: Future
>
>
> We could use an DSL for error handling in Spring DSL
> Then we can use the <redeliveryPolicy/> tag as well. And have an enum to specify
the type in case we want a dead letter channel instead or transactional instead
> {code:xml}
> <errorHandler id="myErrorHandler" type="DeadLetterChannel">
>     <deadLetter uri="log:dead"/>
>     <redeliveryPolicy maximumRedeliveries="5" logStackTrace="true" backOffMultiplier="2"/>
> </errorHandler>
> {code}
>                    

-- 
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