[Building Sakai] activemq-data clutter
Joshua Swink
joshua.swink at gmail.com
Fri Feb 12 11:05:52 PST 2010
Solution found:
In messageservice, add a tmpDataDirectory to the BrokerService in
pack/src/webapp/WEB-INF/activemq-beans.xml.
Here is my patch, which actually modifies two directories, because
activemq will place four objects in the sakai directory otherwise.
This way, all of its stuff is contained in just one subdirectory.
Index: pack/src/webapp/WEB-INF/activemq-beans.xml
===================================================================
--- pack/src/webapp/WEB-INF/activemq-beans.xml (revision 782)
+++ pack/src/webapp/WEB-INF/activemq-beans.xml (working copy)
@@ -124,7 +124,7 @@
class="org.apache.activemq.store.amq.AMQPersistenceAdapterFactory">
<property name="dataDirectory">
<bean class="java.io.File">
- <constructor-arg type="java.lang.String" value="${sakai.home}"/>
+ <constructor-arg type="java.lang.String" value="${sakai.home}/activemq"/>
</bean>
</property>
<property name="maxFileLength" value="32"/>
@@ -155,9 +155,10 @@
<ref bean="org.sakaiproject.messageservice.activemq.TransportConnector"
/>
</list>
</property>
+ <property name="tmpDataDirectory"
value="${sakai.home}/activemq/activemq-data"/>
<property name="networkConnectors">
<ref bean="org.sakaiproject.messageservice.activemq.NetworkConnectorListFactory"/>
</property>
</bean>
</beans>
Josh
On Thu, Jan 14, 2010 at 11:11 AM, Joshua Swink <joshua.swink at gmail.com> wrote:
> Whenever I start Sakai, an activemq-data directory gets created in the
> current working directory. Does anyone know how to prevent this from
> happening?
>
> Josh
>
More information about the sakai-dev
mailing list