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

AMQP 1.0 conversion layer to use 'Map' x-opt-jms-msg-type annotation when message is representable as a JMS Map Message and recipent known to be the Qpid JMS Client

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • qpid-java-broker-7.0.0
    • Broker-J
    • None

    Description

      If the AMQP 1.0 converts a message for the Qpid JMS Client and the body is a Map whose content conforms to the JMSMapMessage restrictions (string keys, restricted domain of values etc), the conversion layer should set the “x-opt-jms-msg-type” annotation with a Map value so that the client, on receipt, will produce a JMS Map Message for the application.

      For map messages converted from other protocols to AMQP 1.0, this will ensure fidelity (currently the user receives an ObjectMessage - see test org.apache.qpid.jms.provider.amqp.message.AmqpCodecTest#testCreateAmqpObjectMessageFromAmqpValueWithMap).

      For management responses, this will ensure that many management responses can be handled simply.

      If the map does not conform to the JMS restrictions or the client is not a Qpid JMS Client, the annotation must not be applied.

      Q: how should the broker know the client understands the “x-opt-jms-msg-type” annotation?

      Attachments

        Activity

          People

            Unassigned Unassigned
            kwall Keith Wall
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: