Uploaded image for project: 'Qpid JMS'
  1. Qpid JMS
  2. QPIDJMS-479

[JMS Client] JMS client breaks AMQP 1.0 specification by always setting the "to" property equal to link address.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 0.46.0, 0.47.0
    • Fix Version/s: None
    • Component/s: qpid-jms-client
    • Labels:
      None

      Description

      https://github.com/apache/qpid-jms/blob/0.47.0/qpid-jms-client/src/main/java/org/apache/qpid/jms/JmsSession.java#L859-L890

       

      The class JmsSession of Qpid JMS client always calls "Message.setJMSDestination" with the link address before sending the message. This is not specification-conform.

       

      From AMQP JMS mapping v1.0 section 3.3.2 (Note the final setence: The JMSDestination should be derived from the link address ONLY IF it is not set):

      to

      This field is mapped to the JMSDestination header of the Message. JMSDestination is defined as being of the JMS Destination type, while the to field of properties requires an address-string. See 5. Destinations for REQUIRED detail regarding how conversion between these types is achieved if the to field of properties was set. If the to field of properties was not set on a received message, the JMSDestination header value SHOULD be derived from the Destination to which the receiving consumer was established.

       

      From AMQP 1.0 specification section 3.2.4:

      to         the address of the node the message is destined for

      The to field identifies the node that is the intended destination of the message. On any given transfer this might not be the node at the receiving end of the link.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              yufei.cai Yufei Cai
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: