Hi Joe, Thanks a lot for your feedback. But I couldn't find the config file where I can set <broker xmlns... >. FYI, I'm using spring framework and have a bean id as below in my web application web.xml file : <bean id="connectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory"> <property name="brokerURL" value="tcp://localhost:61616" /> </bean>.
I have the activemq setup as web console and do not find any xml file that consists of the <bean... tag as well. Appreciate if you could give me some pointer. Thanks & Regards, Florence Joe Fernandez wrote: > > 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-tp27220569p27221197.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.