[
https://issues.apache.org/activemq/browse/CAMEL-1457?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-1457.
--------------------------------
Resolution: Fixed
Bean Binding will now prefer methods with Exception if the Exchange has an
exception set. Otherwise it fall backs to regular methods without Exception
parameters.
Committed revision 753284.
> Bean Binding - @ExchangeException should only be considered if Exchange has
> an exception (= eg is failed)
> ---------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-1457
> URL: https://issues.apache.org/activemq/browse/CAMEL-1457
> Project: Apache Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 2.0.0
>
>
> Relates to the work of improving the BeanInfo algorithm for detecting method
> to invoke
> {code}
> public String handleFailure(String order, @ExchangeException
> Exception e) {
> return "Failure";
> }
> public String handleOrder(String order) {
> return "Order";
> }
> {code}
> Should select handleOrder if the Exchange has no exception. And handleFailure
> if it has an Exception.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.