Pratibha,

You should cast the exchange to JbiExchange before you can access the getMessageExchange() method
JbiExchange jbiexchange = (JbiExchange) exchange;
MessageExchange me = jbiexchange.getMessageExchange();

Gert

pratibhaG wrote:
The class of the exchange is org.apache.servicemix.camel.JbiExchange
but if I do this exchange.getMessageExchange();
it gives me compile time error saying method is undefined.

Am i doing something wrong?

Pratibha

Reply via email to