MessageID versus JMSMessageID
In SolAdmin, I'm seeing that the MessageID that is generated for the new message I received is not the same as the JMSMessage ID. Are they supposed to be the same?
TextMessage txtMsg = jmsSession.createTextMessage(); messageID = txtMsg.getJMSMessageID();
Best Answer
-
Hi,
The MessageID that you see on a message via soladmin is internal to Solace and not exposed via the APIs. The JMSMessageID property actually maps to the ApplicationMessageID message property in Solace.You can find a mapping of JMS Headers fields to Solace equivalents here:
https://docs.solace.com/Solace-JMS-API/Message-Components.htm#solace_jms_overview_950181419_236050Hope that helps!
6
Answers
-
The two are not the same. MessageID is shown in the endpoints tab of SolAdmin. It is internal to the Solace Message Broker. You can use it to do things such as deleting messages via the CLI or SEMP. Here is an example:
solace(admin/message-spool)# delete-messages queue my_sample_queue message 123456789 to 123456790
JMSMessageID is not displayed in SolAdmin.
0 -
Hi,
The MessageID that you see on a message via soladmin is internal to Solace and not exposed via the APIs. The JMSMessageID property actually maps to the ApplicationMessageID message property in Solace.You can find a mapping of JMS Headers fields to Solace equivalents here:
https://docs.solace.com/Solace-JMS-API/Message-Components.htm#solace_jms_overview_950181419_236050Hope that helps!
6