camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Müller (JIRA) <j...@apache.org>
Subject [jira] [Assigned] (CAMEL-6448) Incorrect documentation for XML redeliveryPolicyRef in OnException clause
Date Tue, 11 Jun 2013 19:51:20 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-6448?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Christian Müller reassigned CAMEL-6448:
---------------------------------------

    Assignee: Christian Müller
    
> Incorrect documentation for XML redeliveryPolicyRef in OnException clause
> -------------------------------------------------------------------------
>
>                 Key: CAMEL-6448
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6448
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.10.3, 2.10.4, 2.11.0
>            Reporter: Ben Kiefer
>            Assignee: Christian Müller
>            Priority: Trivial
>              Labels: documentation, onException, redelivery
>
> The example in the documentation on the onException page (http://camel.apache.org/exception-clause.html)
shows incorrect configuration of an external redelivery policy.
> It currently shows:
>  <bean id="myRedeliveryPolicy" class="org.apache.camel.processor.RedeliveryPolicy">
>         <property name="maximumRedeliveries" value="${myprop.max}"/>
>     </bean>
>      <onException>
>          <!-- you can define multiple exceptions just adding more exception elements
as show below -->
>          <exception>com.mycompany.MyFirstException</exception>
>          <exception>com.mycompany.MySecondException</exception>
>          <!-- here we reference our redelivery policy defined above -->
>          <redeliveryPolicy ref="myRedeliveryPolicy"/>
>      </onException>
> But it should be:
>  <bean id="myRedeliveryPolicy" class="org.apache.camel.processor.RedeliveryPolicy">
>         <property name="maximumRedeliveries" value="${myprop.max}"/>
>     </bean>
>      <onException redeliveryPolicyRef="myRedeliveryPolicy">
>          <exception>com.mycompany.MyFirstException</exception>
>          <exception>com.mycompany.MySecondException</exception>
>          <!-- more config here -->
>      </onException>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message