You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "clebert suconic (Jira)" <ji...@apache.org> on 2019/08/26 15:46:00 UTC
[jira] [Closed] (ARTEMIS-2409) HornetQ client vs Artemis broker
compatibility: issue while using JMSMessageID as selector
[ https://issues.apache.org/jira/browse/ARTEMIS-2409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
clebert suconic closed ARTEMIS-2409.
------------------------------------
Fix Version/s: 2.10.0
Resolution: Fixed
> HornetQ client vs Artemis broker compatibility: issue while using JMSMessageID as selector
> ------------------------------------------------------------------------------------------
>
> Key: ARTEMIS-2409
> URL: https://issues.apache.org/jira/browse/ARTEMIS-2409
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Components: Broker
> Affects Versions: 2.9.0
> Reporter: Tomas Hofman
> Priority: Major
> Fix For: 2.10.0
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> 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.
> {code}
> 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
> {code}
--
This message was sent by Atlassian Jira
(v8.3.2#803003)