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 (Commented) (JIRA)" <ji...@apache.org> on 2012/03/07 23:32:56 UTC

[jira] [Commented] (CAMEL-5065) Populating Exchange.FAILURE_ENDPOINT when bean is referenced using bean(...) and throws Exception

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

Claus Ibsen commented on CAMEL-5065:
------------------------------------

I will be -1 this idea, as the property is for *endpoints*.
So its when you send a message to another endpoint.

We should not mix in other situations where its being set.

You can build you own interceptor to track what is going on, as well tap into the tracer which have details where the message has been routed.
                
> Populating Exchange.FAILURE_ENDPOINT when bean is referenced using bean(...) and throws Exception
> -------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5065
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5065
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.9.1
>            Reporter: Marco Zapletal
>            Priority: Minor
>             Fix For: 2.10.0
>
>         Attachments: populatingFailureEndpointProperty.zip
>
>
> We are currently working on the management of failed exchanged. For getting an insight what has happened the Exchange.FAILURE_ENDPOINT delivers valuable information. However, this property gets only populated by endpoints. This means, when using beans, the property is set when the bean is referenced using to(bean://exceptionBean), but not if the bean is referenced using bean(exceptionBean). In the latter case, the property gets either populated using the last endpoint before the bean(...) or not at all. Please see the attached test case.
> Thus, I would like to suggest populating the Exchange.FAILURE_ENDPOINT also for beans that are referenced in the DSL using the .bean() notation

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira