Reputation: 6092
I'm searching for the way to retry some messages from the DLQ via command-line tool. Quick look at activemq-admin
tool doesn't give me an answer for that.
I have a selector, list of messages in the DLQ and want to retry them one more time. I know, that from the admin web interface it's possible to select a one message or several and retry them, but for security reasons we don't use Jolokia.
Upvotes: 0
Views: 3258
Reputation: 22279
The redeliver feature is a JMX feature, so if you have jolokia turned off, I guess the same goes for remote JMX. If you have local JMX turned on, you can use jconsole or similar to do redeliver - that is, if you can log in with GUI.
The command line tool that comes with ActiveMQ is not really up to the task. You can find a bunch of online tools to access JMX from command line, but you probably want to make some script for it then.
If you want remote access and can only use the transport protocol (openwire or AMQP), you can use the "A" tool. It can move messages using selectors and similar tasks. It's handy, but then I wrote it, so I'm a bit biased.
Upvotes: 1