onException in XMLMessageListener for which endPoint?
alinaqvi
Member Posts: 35 ✭
protected XMLMessageListener getXMLMsgListener() { return new XMLMessageListener() { @Override public void onException(JCSMPException arg0) { ** // Which topic is this for?** } @Override public void onReceive(BytesXMLMessage msg) { // normal message } }; }
Is there any way to know which topic or queue onException got invoked for?
Many Thanks,
Ali
0
Best Answer
-
onException()
will normally be called for transport exceptions and such. It won't be for a specific topic or message.Note that when you are receiving Guaranteed (persistent) messages from an endpoint (e.g. Queue) you create a Flow and you can specify a separate Listener callback for that Flow.
5
Answers
-
onException()
will normally be called for transport exceptions and such. It won't be for a specific topic or message.Note that when you are receiving Guaranteed (persistent) messages from an endpoint (e.g. Queue) you create a Flow and you can specify a separate Listener callback for that Flow.
5