During backup I want to pause all JMS queues in HornetQ, in order to take a snapshot of the disk. In jboss-cli I am calling:
connect
/subsystem=messaging/hornetq-server=default/jms-queue=%queueName:pause
But the queue is not pausing. How can I pause all JMS jobs?
UPD
Steps to reproduce:
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 /]
But When I call
[standalone@localhost:9999 /] /subsystem=messaging/hornetq-server=default/jms-queue=AIIndex:count-messages
{
"outcome" => "success",
"result" => 128L
}
So whenever I call /subsystem=messaging/hornetq-server=default/jms-queue=AIIndex:count-messages it shows different values.
%queuenamea variable or does a queue with that name really exist? What does your command return, and what do you expect? - Beryllium