I just want to add that there is now way in the JBI spec to retrieve
such information.
The main reason is that a JBI exchange is sent from a component to an
endpoint, not from an endpoint to another endpoint.

On Wed, Apr 15, 2009 at 00:00, Gert Vanthienen
<[email protected]> wrote:
> Gabriella,
>
> This information is available in a MessageExchange property named
> "org.apache.servicemix.senderEndpoint" (JbiConstants.SENDER_ENDPOINT).
>  This is a ServiceMix-specific property, so it will only work with the
> ServiceMix JBI components and not if you're using third party JBI
> components.
>
> Regards,
>
> Gert Vanthienen
> ------------------------
> Open Source SOA: http://fusesource.com
> Blog: http://gertvanthienen.blogspot.com/
>
>
>
> 2009/4/14 Gabriela Gheorghe <[email protected]>:
>> Hi,
>>
>>
>>
>> I am implementing a bunch of classes that will be intercepting the messages
>> that get to the NMR. The problem is simple: I need to retrieve, for every
>> message exchange, the source endpoint (the JBI spec calls this the
>> "initiator").
>>
>> In the API, the message exchange has some methods that pertain to
>> determining where it is going to (getService(), getEndpoint(), etc), but
>> nothing related to the source information. My question is how does the NMR
>> know where the message is coming from, and how I can get to this data?
>>
>>
>>
>> I've been looking into the javadoc  at the classes related to the
>> ComponentContextImpl / DeliveryChannel, but I still haven't found how I can
>> retrieve the source of a message that gets to the router.
>>
>>
>>
>> Does anybody know how I could so that?
>>
>>
>>
>>
>>
>> Thanks!
>> Gabriella
>>
>>
>>
>>
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com

Reply via email to