Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-7544

[Java Client][AMQP 0-10] After resending a previously sent Message, the JMSMessageId is not updated

    XMLWordPrintableJSON

Details

    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.

      Attachments

        Activity

          People

            rgodfrey Robert Godfrey
            rgodfrey Robert Godfrey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: