Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-1314

Using the message filter with JMSCorrelationID seems not to work

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.4.0
    • Component/s: Broker
    • Labels:
      None
    • Environment:
      • RHEL 7
      • Java 8
      • Qpid JMS 0.23.0

      Description

      Creating a consumer with a message filter for the JMS correlation ID seems not to work:

      consumer = session.createConsumer(destination, "JMSCorrelationID='" + id + "'");
      

      The message consumer never receives the message. However, removing the filter an manually filtering does work:

      if (id.equals(message.getJMSCorrelationID())) {
        // do stuff
      }
      

      Also does the correlation ID show up in the list of properties:

      JMSType => null
      JMSMessageID => ID:d20ffaba-25f4-497a-80e9-99d58101f589:2:1:1-1
      JMSExpiration => 0
      JMSRedelivered => false
      JMSTimestamp => 1501572098651
      JMSXUserID => null
      JMSXGroupSeq => 0
      JMS_AMQP_ACK_TYPE => null
      JMSDeliveryMode => PERSISTENT
      JMSPriority => 4
      JMSReplyTo => null
      JMSXGroupID => null
      JMSDestination => serviceAExternal
      JMSXDeliveryCount => 1
      JMSCorrelationID => d1c2daf6-2f2a-4641-a917-0f211e53e110
      JMSDeliveryTime => 1501572098651
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tabish Timothy A. Bish
                Reporter:
                ctron Jens Reimann
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: