mirror of
https://github.com/apache/activemq-artemis.git
synced 2025-02-06 10:09:01 +00:00
dd61a651b1
The OpenWire JMS client shipped with ActiveMQ "Classic" uses the client's hostname as part of the `JMSMessageID`. Consumers may use this data to select messages sent from particular hosts. Although this is brittle and not recommended it is nonetheless possible. However, when messages arrive to ActiveMQ Artemis they are converted to core messages, and the broker doesn't properly map the selector from `JMSMessageID` to the corresponding property on the underlying core message. This commit fixes that problem. Changes include: - Mapping selector from JMSMessageID to the internal __HDR_MESSAGE_ID - Relocating some constant values so that both the protocol and commons module can use them - Adding a test