You can use the dataDirectory attribute of the broker element as follows

<broker xmlns="http://activemq.apache.org/schema/core";
brokerName="localhost" dataDirectory="/tmp/foo">

You can also specify the location of the file-based message store via the
persistenceAdapter element. For example  

<persistenceAdapter>
    <kahaDB directory="${activemq.base}/data/kahadb"/>
</persistenceAdapter>

Joe
http://www.ttmsolutions.com



Florence.Tan wrote:
> 
> Hi,
> 
> I'd installed activemq 5.3 web console to Tomcat6 running on Linux.  I
> found out that everytime I restart Tomcat6, all the queues in activemq
> will be removed and found that activemq-data directory is created in
> /tmp/tomcat6-tmp directory which will be removed everytime tomcat6 is
> stopped.
> 
> Would like to find out how I can change the activemq-data directory to a
> specified directory ?  
> 
> FYI, this problem do not occured in Windows environment but only in Unix.
> 
> Any help or comments would be appreciated.
> 
> Thanks & Regards,
> Florence
> 

-- 
View this message in context: 
http://old.nabble.com/Changing-activemq-data-dir-tp27220569p27220911.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to