Prathiba,
This will print every message that is handled by the ESB on the console,
both the request and the responses. So, you're going to see every
message exchange more than once -- e.g. for an InOut message exchange,
your listener is going to be invoked every time you see an arrow with
'send' in the invocation example on
http://servicemix.apache.org/5-jbi.html.
Are you having any specific problem with this listener implementation?
If so, please provide us with error messages or stack traces or something.
Gert
pratibhaG wrote:
Now I have made my Listener very simple.It is like this:
package errorhandling;
import javax.jbi.messaging.MessageExchange;
import org.apache.servicemix.jbi.event.ExchangeEvent;
import org.apache.servicemix.jbi.event.ExchangeListener;
public class ExceptionListenerService implements ExchangeListener {
public void exchangeAccepted(ExchangeEvent event) {
}
public void exchangeSent(ExchangeEvent event) {
MessageExchange me = event.getExchange();
logger.debug("in listener message is " + me);
}
}
This should only print the request message to console right?
How can I make sure that my listener is listening to all my messages?
-Pratibha