I want to set jms messageId in sequence 1,2,3.... while sending a Jms Message in HornetQ. But when ever I tried to set my customised MessageID to JMS message at the consumer end MessageID of same JMS message is different. while doing so I found that JMS MessageID has some specific format . So how do I set my customised MessageID ?
The setMessageID method is only there to be used by JMS Vendors, you can only change it after being delivered to the consumer. See the JMS API