【发布时间】:2013-08-28 13:53:14
【问题描述】:
在备份期间,我想暂停 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 时,它都会显示不同的值。
【问题讨论】:
-
请提供您正在使用的完整命令行。
%queuename是变量还是具有该名称的队列真的存在?你的命令返回什么,你期望什么?