在备份期间,我想暂停 HornetQ 中的所有 JMS 队列,以便拍摄磁盘快照。在jboss-cli
我打电话:
connect
/subsystem=messaging/hornetq-server=default/jms-queue=%queueName:pause
但是队列没有暂停。如何暂停所有 JMS 作业?
UPD
重现步骤:
root@debian:/opt/jboss/bin# ./jboss-cli.sh
You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands.
[disconnected /] connect
[standalone@localhost:9999 /] /subsystem=messaging/hornetq-server=default/jms-queue=AIIndex:pause
{
"outcome" => "success",
"result" => undefined
}
[standalone@localhost:9999 /]
但是当我打电话时
[standalone@localhost:9999 /] /subsystem=messaging/hornetq-server=default/jms-queue=AIIndex:count-messages
{
"outcome" => "success",
"result" => 128L
}
因此,每当我调用 /subsystem=messaging/hornetq-server=default/jms-queue=AIIndex:count-messages
它时,它都会显示不同的值。