简体   繁体   中英

How can we remove a specific message from jboss mq using jboss cli

I want to remove messages from jboss mq using certain filter , as I have googled the only filter available seems to be message-id I am looking to use other properties of message, ex. JMSTimestamp

I am looking for something like

/subsystem=messaging-activemq/server=default/jms-queue="queuename"/:remove-message(timestamp>somevalue)

您应该使用将过滤器作为参数的 remove-messages 操作。

仅供参考 这是我使用的语法

/subsystem=messaging-activemq/server=default/jms-queue="queuename"/: remove-messages(filter=JMSTimestamp > somevalue)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM