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