Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to get activeMQ queue name from command line?

I need to run a test on a remote host that has activeMQ running on it and I want to verify if the name of the queue is the right name by comparing it with a local file. I used bstat to get the status of activeMQ and then greped the part that has destionName but I was wondering if there is a better way to do it through command line or shell not java?

like image 342
tkyass Avatar asked Sep 14 '26 00:09

tkyass


1 Answers

You could use the command line tool "a".

a -b tcp://remote-broker-hostname:61616 --list-queues

would print

Queues:
Queue4
DELAYED
ChatMessages
Operation completed in 22ms (excluding connect)

It's written in java.

Disclaimer: I'm the author of that tool.

like image 160
Petter Nordlander Avatar answered Sep 20 '26 17:09

Petter Nordlander



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!