Uploaded image for project: 'AMQ Broker'
  1. AMQ Broker
  2. ENTMQBR-7952

creating dynamicQueues from an JavaEE MDB applies configured messageSelector as per-queue filters

XMLWordPrintable

      Steps to reproduce:

      Configuration

      1. Configure wildfly activemq-ra
      2. Create MDB Consumer with following ActivationSpec
        @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}'"
                        )
                }
        )
        
      3. Deploy the service

      Expected Result

      1. MyQueue created
      2. Queue-Attribute 'filter' is empty
      3. Consumer is attached to queue with messageSelector as consumer filter

      Actual Result

      1. MyQueue created
      2. Queue-Attribute 'filter' contains messageSelector
      3. Consumer is attached to queue with messageSelector as consumer filter

      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.

            rhn-support-jbertram Justin Bertram
            rh-messaging-ci Messaging CI
            Samuel Gajdos Samuel Gajdos
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: