Solace Community is getting a facelift!
On March 3rd we will be starting the process of migrating Solace Community to a new platform. As a result, Solace Community will go in to a temporary read-only state. You will still be able to come onto Solace Community and search through posts to find answers, but you won't be able to ask questions, post comments, or react in any way.
We hope to have the migration complete by Wednesday March 5th (or sooner), so please keep an eye out!
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