Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-4004

Queue selector set in standalone-full.xml not parsed as defined in the HornetQ documentation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • 7.1.0.Final
    • JMS

      HornetQ 2.2.5 documentation says in chapter 25 "Queue attributes" that JMS queue may have a selector defined:

      <queue name="selectorQueue">
      <entry name="/queue/selectorQueue"/>
      <selector string="color='red'"/>
      <durable>true</durable>
      </queue>

      In JBoss, a configuration with

      <jms-queue name="selectorQueue">
      <entry name="queue/selectorQueue"/>
      <selector string="color='red'"/>
      </jms-queue>

      fails to start with an exception:

      Message: "JBAS014704: '' is an invalid value for parameter selector. Values must have a minimum length of 1 characters"

      It starts with the following structure:

      <jms-queue name="selectorQueue">
      <entry name="queue/selectorQueue"/>
      <selector>color='red'</selector>
      </jms-queue>

      but the filtering of messages NEVER occurs and all messages go to the queue (all colors).

              jmesnil1@redhat.com Jeff Mesnil
              jbossalecuser A l e c C R E S T A N (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: