How do I change the message store directory for an embedded broker

 FAQ > Persistence Questions > How do I change the message store directory for an embedded broker

Embedded brokers create an ActiveMQ directory under the current working directory to store it’s persistent message data. To change the location of the directory used by the message store, set the activemq.store.dir system property to the directory you want it to use.

Example:

java -Dactivemq.store.dir=/temp your.Application

Apache ActiveMQ, ActiveMQ, ActiveMQ Artemis, Apache, the Apache feather logo, and the Apache ActiveMQ project logo are trademarks of The Apache Software Foundation. Copyright © 2019, The Apache Software Foundation. Licensed under Apache License 2.0.