You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Justin Bertram (Jira)" <ji...@apache.org> on 2023/03/02 02:14:00 UTC
[jira] [Commented] (ARTEMIS-4188) creating dynamicQueues from an JavaEE MDB applies configured messageSelector as per-queue filters
[ https://issues.apache.org/jira/browse/ARTEMIS-4188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17695416#comment-17695416 ]
Justin Bertram commented on ARTEMIS-4188:
-----------------------------------------
I can confirm this is a bug. I'll send a PR to resolve it soon.
> creating dynamicQueues from an JavaEE MDB applies configured messageSelector as per-queue filters
> -------------------------------------------------------------------------------------------------
>
> Key: ARTEMIS-4188
> URL: https://issues.apache.org/jira/browse/ARTEMIS-4188
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Affects Versions: 2.19.1
> Reporter: Wizz
> Priority: Major
>
> h3. Steps to reproduce:
> h4. Configuration
> # Configure wildfly activemq-ra
> # Create MDB Consumer with following ActivationSpec
> {code:java}
> @MessageDriven(
> activationConfig = {
> @ActivationConfigProperty(
> propertyName = "destinationLookup",
> propertyValue = "java:global/federation/artemis/dynamicQueues/MyQueue"
> ),
> @ActivationConfigProperty(
> propertyName = "destinationType",
> propertyValue = "javax.jms.Queue"
> ),
> @ActivationConfigProperty(
> propertyName = "maxSession",
> propertyValue = "1"
> ),
> @ActivationConfigProperty(
> propertyName = "messageSelector",
> propertyValue = "HeaderField = '${my.system.property.value}'"
> )
> }
> )
> {code}
> # Deploy the service
> h4. Expected Result
> # (/) MyQueue created
> # (x) Queue-Attribute 'filter' is empty
> # (/) Consumer is attached to queue with messageSelector as consumer filter
> h4. Actual Result
> # (/) MyQueue created
> # (!) Queue-Attribute 'filter' contains messageSelector
> # (/) Consumer is attached to queue with messageSelector as consumer filter
> h3. Effects
> On a multi server-group setup (same service deployed to several server groups) the queue filter is set to {{HeaderField = '${my.system.property.value}'}} with 'my.system.property.value' of the first server group.
> Thus messages of the other server group will not be accepted by the queue.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)