Created
December 16, 2015 12:28
-
-
Save jmbataller/f15af67d94cc4446a002 to your computer and use it in GitHub Desktop.
Purge messages in ActiveMQ using the command line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Purge messages using the activemq-admin command line: | |
activemq-admin purge --jmxurl service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi --jmxuser camel --jmxpassword password purge com.test.queue.dlq | |
JMX needs to be enabled to purge messages, check ./conf/activemq.xml has the createConnector enabled: | |
<managementContext> | |
<managementContext createConnector="true"/> | |
</managementContext> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment