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
- links to