As there where some 'issues' doing this with the MessageExchangeLister - there is now a separate interface, ExchangeResponseListener to get responses for exchanges. This makes the distinction clearer - as it could get a bit confusing for a component acting as a service that was receiving exchanges on the MessageExchangeListener.onMessageExchange() call as well.

cheers,

Rob
On 13 Aug 2005, at 17:04, Alexandre Alves wrote:

Hi,

I have downloaded servicemix M2 and I have a question
regarding the
usage of the MessageExchanges:

When a service engine acts in the consumer role and
sends a InOut
exchange (created by itself), my expectation is that
the service engine
would have been called back (onMessageExchange()) with
the exchange
containing the output or fault message and it would
then just need to
set the status to DONE; however it seems that that is
not the case, the
service engine has to apparently use sendSync and
synchronously wait for
a response. Was this the intention?

Thank you in advance,
Alex





____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs



Reply via email to