Hi,

I think you'll just need to do something like:

     String mySess = mex.getProperty(
PartnerRoleMessageExchange.PROPERTY_SEP_MYROLE_SESSIONID);
     String partnerSess = mex.getProperty(
PartnerRoleMessageExchange.PROPERTY_SEP_PARTNERROLE_EPR);

For more information on how we handle the correlations this way:

http://incubator.apache.org/ode/implicit-correlations.html
http://incubator.apache.org/ode/stateful-exchange-protocol.html

Cheers,
Matthieu

On 3/5/07, Guillaume Nodet <[EMAIL PROTECTED]> wrote:

Hi guys !

In ServiceMix, there is a property named "
org.apache.servicemix.correlationId"
that is used to correlate MessageExchanges.
For example, if a JBI endpoint receives a JBI exchange, and send another
jbi exchange while processing it, the components will forward this
property
from the inbound exchange to the outbound exchange (or create it with a
unique
id if none was set).  This enables tracking of a "JBI process".  I think
ODE
would benefit of such a behavior when deployed inside ServiceMix, so I'm
trying
to implement it.

However, I'm not sure what the best way to do that.  I would say that the
best way
is to use properties defined on org.apache.ode.bpel.iapi.MessageExchange,
but I haven't been able to find a way to retrieve these properties from
a MessageExchangeContext.invokePartner call.

Any hints on how to do that ?

Cheers,
Guillaume Nodet
------------------------
Architect, LogicBlaze (http://www.logicblaze.com/)
Blog: http://gnodet.blogspot.com/

Reply via email to