Why it is not possible to filter messages with wildcard selector using activemq browse command ?

Solution Unverified - Updated -

Issue

  • Why the following command fails to run when the "msgsel" option is used as following:
      activemq:browse --amqurl tcp://localhost:61616 --user admin --password admin --msgsel JMSMessageID='*:10' queue/testQ
  • When executing the above command it throws the following exception:
ERROR: java.lang.RuntimeException: Failed to execute browse task. Reason: javax.jms.InvalidSelectorException: (JMSMessageID=*:10)
java.lang.RuntimeException: Failed to execute browse task. Reason: javax.jms.InvalidSelectorException: (JMSMessageID=*:10)
  • It is not possible to filter messages with wildcard selector

Environment

  • Red Hat JBoss A-MQ
    • 6.0
  • Red Hat JBoss Fuse
    • 6.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.