Yes this was my case : > > I think this this user has several http consumer endpoints, configured > > at different URIs (e.g. http://0.0.0.0/service1, > > http://0.0.0.0/service2 , http://0.0.0.0/service3). On all of these > > endpoints, the same targetService is configured (ex:Service) and it is > > in this targetService that he would like to distinguish between the > > originating consumer endpoints.
Thanks to Guillaume for reply which give me the solution :-) gnodet wrote: > > The consumer *component* can be retrieved using: > > ((MessageExchangeImpl) exchange).getSourceContext().getComponent() > > ServiceMix components also set the following property: > > exchange.getProperty(JbiConstants.SENDER_ENDPOINT) > > which returns a string uniquely identifying the endpoint. > > I don't really recall where/if the uri is stored... > -- View this message in context: http://www.nabble.com/How-to-obtain-URI-address-of-http%3Aendpoint---tf4437467s12049.html#a12679719 Sent from the ServiceMix - Dev mailing list archive at Nabble.com.
