🎄 Happy Holidays! 🥳
Most of Solace is closed December 24–January 1 so our employees can spend time with their families. We will re-open Thursday, January 2, 2024. Please expect slower response times during this period and open a support ticket for anything needing immediate assistance.
Happy Holidays!
Please note: most of Solace is closed December 25–January 2, and will re-open Tuesday, January 3, 2023.
onException in XMLMessageListener for which endPoint?
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
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