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-1457) Bean Binding - @ExchangeException should only be considered if Exchange has an exception (= eg is failed)
Date Fri, 13 Mar 2009 14:42:41 GMT

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

Claus Ibsen commented on CAMEL-1457:
------------------------------------

And you dont have to provide the @ExchangeException anymore. Camel will be able to provide
the Exception if you just define an Exception type

{code}
public void handleFailure(String body, Exception cause) {
...
{code}

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


Mime
View raw message