Uploaded image for project: 'A-MQ Broker'
  1. A-MQ Broker
  2. ENTMQBR-140

[Artemis] JMS CorrelationID header in bytes format sent incorrectly when using Qpid JMS

    Details

    • Type: Bug
    • Status: Done
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: A-MQ 7.0.0.GA
    • Component/s: None
    • Labels:
      None
    • Target Release:
    • Sprint:
      AMQ 7.0.2 sprint 1
    • Steps to Reproduce:
      Hide

      1. Start Artemis
      2. Send a JMS message using Qpid JMS client. Set the correlation ID by calling the setJMSCorrelationIDAsBytes() function on the message prior to sending.
      3. Receive the JMS message using Qpid JMS client. Call the function getJMSCorrelationIDAsBytes() on the received message to retrieve the correlation ID.

      Expected result:
      Original bytes correlation ID is received.

      Actual result:
      javax.jms.JMSException: The underlying correlation-id is not binary and so can't be returned
      The correlation ID can be received as a regular string using getJMSCorrelationID(), but is returned with "ID:" prepended to the original ID.

      Show
      1. Start Artemis 2. Send a JMS message using Qpid JMS client. Set the correlation ID by calling the setJMSCorrelationIDAsBytes() function on the message prior to sending. 3. Receive the JMS message using Qpid JMS client. Call the function getJMSCorrelationIDAsBytes() on the received message to retrieve the correlation ID. Expected result: Original bytes correlation ID is received. Actual result: javax.jms.JMSException: The underlying correlation-id is not binary and so can't be returned The correlation ID can be received as a regular string using getJMSCorrelationID(), but is returned with "ID:" prepended to the original ID.

      Description

      When using the Qpid JMS client (AMQP 1.0), sending messages containing a JMS Correlation ID header in bytes format is sent to the consumer in string format instead with the string "ID:" prepended.

        Gliffy Diagrams

          Attachments

          1. Receiver.java
            3 kB
          2. Sender.java
            3 kB

            Issue Links

              Activity

                People

                • Assignee:
                  ataylor Andy Taylor
                  Reporter:
                  kvanderr Kim van der Riet
                  Tester:
                  Dmitrii Puzikov
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: