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

HornetQ client vs Artemis broker compatibility: issue while using JMSMessageID as selector

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.9.0
    • 2.10.0
    • Broker
    • None

    Description

      When Hornetq client connects to Artemis broker, and creates consumer with selector containing e.g. JMSMessageID field, selector fails to correctly match messages.

      When using JMSMessageID as a selector, HornetQ client converts the header to HQUserID, while Artemis is expecting header AMQUserID.

      The broker should detect a legacy HornetQ client and adjust the incoming selector.

      String selector = "JMSMessageID = 'ID:06df8801-9719-11e9-9313-972d6542d784'";
      // message with above ID exists in the queue
      
      org.hornetq.api.core.client.ClientConsumer hqConsumer = hqSession.createConsumer(queueName, selector, true);
      org.hornetq.api.core.client.ClientMessage message = hqConsumer.receive(1000);
      assertNotNull(message); // fails
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              thofman Tomas Hofman
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h