我正在尝试从WildFly 10.1中创建的队列中删除所有邮件:
/profile=full-ha/subsystem=messaging-activemq/server=default/jms-queue=myQueue/:remove-messages
但是当我运行CLI命令时,我收到来自CLI的以下响应消息。
有人可以解释什么是“备份模式”,我该怎么做才能删除所有邮件?
{
"outcome" => "failed",
"failure-description" => {"domain-failure-description" => "WFLYMSGAMQ0066: Resource at the address [
(\"profile\" => \"full-ha\"),
(\"subsystem\" => \"messaging-activemq\"),
(\"server\" => \"default\"),
(\"jms-queue\" => \"myQueue\")
] can not be managed, the server is in backup mode"},
"rolled-back" => true
}
答案 0 :(得分:2)
您需要在主服务器中应用该命令。
例如,这是主机HC-HOSTNAME
的命令,而您的服务器是server-1
:
/host=HC-HOSTNAME/server=server-1/subsystem=messaging-activemq/server=default/jms-queue=myQueue:remove-messages
答案 1 :(得分:1)
在WildFly域中,备份模式用于主机控制器拥有域配置的完整副本(作为当前域控制器的备份):Use --backup to keep a copy of the persistent domain configuration even if this host is not a domain controller.