Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
HornetQ Journal Check

Export Journal

JBOSS_HOME=/Users/Aparna/Development/Tools/JBoss/jboss-as-7.1.1.Final

java -cp hornetq-core-2.2.13.Final.jar org.hornetq.core.journal.impl.ExportJournal $JBOSS_HOME/standalone/data/messagingjournal hornetq-data hq 10485760 /tmp/export.dmp

Print Journal

JBOSS_HOME=/Users/Aparna/Development/Tools/JBoss/jboss-as-7.1.1.Final
java -cp hornetq-core-2.2.13.Final.jar:netty-3.2.6.Final.jar:hornetq-logging-2.2.13.Final.jar	org.hornetq.core.persistence.impl.journal.PrintData /Users/Aparna/Development/Tools/JBoss/jboss-as-7.1.1.Final/standalone/data/messagingbindings /Users/Aparna/Development/Tools/JBoss/jboss-as-7.1.1.Final/standalone/data/messagingjournal

XML Export Journal

JBOSS_HOME=/Users/Aparna/Development/Tools/JBoss/jboss-as-7.1.1.Final

java -cp hornetq-core-2.2.16.Final.jar:netty-3.2.6.Final.jar:hornetq-logging-2.2.13.Final.jar	org.hornetq.core.persistence.impl.journal.XmlDataExporter $JBOSS_HOME/standalone/data/messagingbindings $JBOSS_HOME/standalone/data/messagingjournal $JBOSS_HOME/standalone/data/messagingjournal $JBOSS_HOME/standalone/data/messaginglargemessages > journal-export.xml

XML Import Journal

JBOSS_HOME=/Users/Aparna/Development/Tools/JBoss/jboss-as-7.1.1.Final

java -cp hornetq-core-2.2.21.Final.jar:netty-3.2.6.Final.jar:hornetq-logging-2.2.13.Final.jar	org.hornetq.core.persistence.impl.journal.XmlDataImporter journal-export.xml localhost 5445
@dougtoppin

This comment has been minimized.

Copy link

dougtoppin commented Nov 27, 2014

Useful info (I've been trying to dump my journal files). This was exactly what I needed to know. Tks for posting it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.