You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2012/09/10 08:44:07 UTC

[jira] [Created] (CAMEL-5587) ExceptionHandler - Add method that has consumer parameter

Claus Ibsen created CAMEL-5587:
----------------------------------

             Summary: ExceptionHandler - Add method that has consumer parameter
                 Key: CAMEL-5587
                 URL: https://issues.apache.org/jira/browse/CAMEL-5587
             Project: Camel
          Issue Type: Improvement
          Components: camel-core
    Affects Versions: 2.10.0
            Reporter: Claus Ibsen
            Priority: Minor
             Fix For: Future


See nabble
http://camel.465427.n5.nabble.com/Getting-consumer-endpoint-details-or-exchange-headers-in-custom-ExceptionHandler-tp5718633.html

If people want to share a custom ExceptionHandler among a number of route consumers, then when an exception is being handled, they wont know which consumer failed.

We could add a method with the consumer parameter. But that would break the old API. But that may be okay as using a custom ExceptionHandler is not commonly used.

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

[jira] [Commented] (CAMEL-5587) ExceptionHandler - Add method that has consumer parameter

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-5587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13451872#comment-13451872 ] 

Claus Ibsen commented on CAMEL-5587:
------------------------------------

About 20 or so Camel components would need to migrate to this newer API.


                
> ExceptionHandler - Add method that has consumer parameter
> ---------------------------------------------------------
>
>                 Key: CAMEL-5587
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5587
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.10.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: Future
>
>
> See nabble
> http://camel.465427.n5.nabble.com/Getting-consumer-endpoint-details-or-exchange-headers-in-custom-ExceptionHandler-tp5718633.html
> If people want to share a custom ExceptionHandler among a number of route consumers, then when an exception is being handled, they wont know which consumer failed.
> We could add a method with the consumer parameter. But that would break the old API. But that may be okay as using a custom ExceptionHandler is not commonly used.

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

[jira] [Commented] (CAMEL-5587) ExceptionHandler - Add method that has consumer parameter

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-5587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13451808#comment-13451808 ] 

Claus Ibsen commented on CAMEL-5587:
------------------------------------

We could just add a (Object source) as parameter where {{this}} will be passed in as parameter. Then the implementation can check its type and do type cast to get the Consumer etc.
                
> ExceptionHandler - Add method that has consumer parameter
> ---------------------------------------------------------
>
>                 Key: CAMEL-5587
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5587
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.10.0
>            Reporter: Claus Ibsen
>            Priority: Minor
>             Fix For: Future
>
>
> See nabble
> http://camel.465427.n5.nabble.com/Getting-consumer-endpoint-details-or-exchange-headers-in-custom-ExceptionHandler-tp5718633.html
> If people want to share a custom ExceptionHandler among a number of route consumers, then when an exception is being handled, they wont know which consumer failed.
> We could add a method with the consumer parameter. But that would break the old API. But that may be okay as using a custom ExceptionHandler is not commonly used.

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

[jira] [Commented] (CAMEL-5587) ExceptionHandler - Add method that has consumer parameter

Posted by "Hadrian Zbarcea (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-5587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13454193#comment-13454193 ] 

Hadrian Zbarcea commented on CAMEL-5587:
----------------------------------------

Kinda old, but still instructive:
http://today.java.net/article/2006/04/04/exception-handling-antipatterns
                
> ExceptionHandler - Add method that has consumer parameter
> ---------------------------------------------------------
>
>                 Key: CAMEL-5587
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5587
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.10.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: Future
>
>         Attachments: CAMEL-5587.patch
>
>
> See nabble
> http://camel.465427.n5.nabble.com/Getting-consumer-endpoint-details-or-exchange-headers-in-custom-ExceptionHandler-tp5718633.html
> If people want to share a custom ExceptionHandler among a number of route consumers, then when an exception is being handled, they wont know which consumer failed.
> We could add a method with the consumer parameter. But that would break the old API. But that may be okay as using a custom ExceptionHandler is not commonly used.

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

[jira] [Assigned] (CAMEL-5587) ExceptionHandler - Add method that has consumer parameter

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5587?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen reassigned CAMEL-5587:
----------------------------------

    Assignee: Claus Ibsen
    
> ExceptionHandler - Add method that has consumer parameter
> ---------------------------------------------------------
>
>                 Key: CAMEL-5587
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5587
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.10.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: Future
>
>
> See nabble
> http://camel.465427.n5.nabble.com/Getting-consumer-endpoint-details-or-exchange-headers-in-custom-ExceptionHandler-tp5718633.html
> If people want to share a custom ExceptionHandler among a number of route consumers, then when an exception is being handled, they wont know which consumer failed.
> We could add a method with the consumer parameter. But that would break the old API. But that may be okay as using a custom ExceptionHandler is not commonly used.

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

[jira] [Updated] (CAMEL-5587) ExceptionHandler - Add method that has consumer parameter

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5587?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-5587:
-------------------------------

    Attachment: CAMEL-5587.patch
    
> ExceptionHandler - Add method that has consumer parameter
> ---------------------------------------------------------
>
>                 Key: CAMEL-5587
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5587
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.10.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: Future
>
>         Attachments: CAMEL-5587.patch
>
>
> See nabble
> http://camel.465427.n5.nabble.com/Getting-consumer-endpoint-details-or-exchange-headers-in-custom-ExceptionHandler-tp5718633.html
> If people want to share a custom ExceptionHandler among a number of route consumers, then when an exception is being handled, they wont know which consumer failed.
> We could add a method with the consumer parameter. But that would break the old API. But that may be okay as using a custom ExceptionHandler is not commonly used.

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

[jira] [Commented] (CAMEL-5587) ExceptionHandler - Add method that has consumer parameter

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-5587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13451888#comment-13451888 ] 

Claus Ibsen commented on CAMEL-5587:
------------------------------------

Posted on @dev to discuss this impact
http://camel.465427.n5.nabble.com/DISCUSS-API-change-on-org-apache-camel-spi-ExceptionHandler-tp5719023.html
                
> ExceptionHandler - Add method that has consumer parameter
> ---------------------------------------------------------
>
>                 Key: CAMEL-5587
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5587
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.10.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: Future
>
>         Attachments: CAMEL-5587.patch
>
>
> See nabble
> http://camel.465427.n5.nabble.com/Getting-consumer-endpoint-details-or-exchange-headers-in-custom-ExceptionHandler-tp5718633.html
> If people want to share a custom ExceptionHandler among a number of route consumers, then when an exception is being handled, they wont know which consumer failed.
> We could add a method with the consumer parameter. But that would break the old API. But that may be okay as using a custom ExceptionHandler is not commonly used.

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