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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • A-MQ 7.0.0.GA
    • None
    • None
    • None
    • 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.
    • AMQ 7.0.2 sprint 1

      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.

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

            rh-ee-ataylor Andy Taylor
            kvanderr@redhat.com Kim van der Riet
            Dmitrii Puzikov Dmitrii Puzikov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: