camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <willem.ji...@gmail.com>
Subject Re: EventNotifierSupport - Endpoint ID accessible ?
Date Sat, 13 Dec 2014 14:35:42 GMT
The id attribute is define in OptionalIdentifiedDefinition which can be unmarshaled from xml.
But it’s not defined in endpoint, so you cannot access it from endpoint.

--  
Willem Jiang

Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem



On December 12, 2014 at 11:13:58 PM, Michael Täschner (m.taeschner@gmail.com) wrote:
> Hi Camel-Riders,
>  
> using Camel 2.13.2 we extend EventNotifierSupport to implement statistics
> collection for routes and endpoints. For endpoints we can extract the
> configured route id via exchange.getFromRouteId() but I can see no way to
> access the "id" for endpoints in our camel spring dsl, only thing
> accessible is endpoint.getEndpointKey() which gives back the uri content.
> Unfortunately this is not very stable if uri options change and not a good
> reference for our statistics map. Is there a way to access the "id" for
> endpoints as declared in the route ?
>  
> Example route:
>  
> > uri="cxf:bean:isbExampleService?dataFormat=MESSAGE&synchronous=true"  
> />
>  
>  
>  
> ServiceImpl Endpoint:
> EndpointKey: "direct:isb.lhsystems.com/services/IsbExampleServiceImpl"
> id = "serviceImpl" -- not visible/accessible ?!
>  
>  
> Thanks and Regards,
> Michael
>  


Mime
View raw message