Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
When a Message object is sent by the JMS client the JMSMessageId should be updated with a new message id (unless message id generation has been turned off).
When using the 0-10 protocol, however, the following code will fail
Message msg = session.createBytesMessage();
producer.send(msg);
String firstId = msg.getJMSMessageID();
producer.send(msg);
assertFalse(firstId.equals(msg.getJMSMessageID());
In fact the send sending of the message does result in a different message-id being sent over the wire, but this new message id is not exposed in the JMS message.