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.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content