Skip to content

Instantly share code, notes, and snippets.

@jmbataller
Created December 16, 2015 12:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmbataller/f15af67d94cc4446a002 to your computer and use it in GitHub Desktop.
Save jmbataller/f15af67d94cc4446a002 to your computer and use it in GitHub Desktop.
Purge messages in ActiveMQ using the command line
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