<< Back to previous view

[MB-847] Allow for easy externalization of ActiveMQ configuration Created: 24/Mar/11  Updated: 19/Apr/12

Status: Resolved
Project: FUSE Message Broker
Component/s: None
Affects Version/s: 5.4.2-fuse-02-00
Fix Version/s: 5.6.0-fuse-00-00, 5.5.1-fuse-03-04

Type: Improvement Priority: Major
Reporter: Torsten Mielke Assignee: Timothy Bish
Resolution: Fixed Votes: 0

Issue Links:
Fixed By
Linked
is linked from MB-1145 Incorrect paths used in wrapper.conf Resolved
External Issue URL: https://issues.apache.org/jira/browse/AMQ-3248

 Description   
Currently many of the AMQ configuration files use the property activemq.base to load in other files, e.g.
activemq.xml:
activmeq.xml
<property name="locations">
  <value>file:${activemq.base}/conf/credentials.properties</value>
</property>

jetty.xml:

jetty.xml
<bean id="securityLoginService" class="org.eclipse.jetty.security.HashLoginService">
  <property name="name" value="ActiveMQRealm" />
  <property name="config" value="${activemq.base}/conf/jetty-realm.properties" />
</bean>

webconsole-embedded.xml:

webconsole-embedded.xml
<property name="locations">
  <value>file:${activemq.base}/conf/credentials.properties</value>
</property>

and others.
In case where you want to externalize the entire ActiveMQ configuration into a folder that is not a sub folder of AMQ, there is the need to change multiple configuration files. This is error prone.

In order to make the use of external AMQ configuration more easy to use, I suggest to
1. introduce a new property called activemq.conf, which points to ${activemq.base}/conf by default in activemq script (if not already set on the shell)
2. replace all occurences of ${activemq.base}/conf with {$activemq.conf} in all XML configuration files (including those in webapps/ folder)

That way one only needs to set the property activemq.conf in order to point to an external AMQ configuration folder.



 Comments   
Comment by Timothy Bish [ 17/Feb/12 04:58 PM ]
fixed, will be in the 5.6.0 release
Comment by Timothy Bish [ 20/Feb/12 09:49 PM ]
Reopen so we can merge into next fuse 5.5.1 release
Generated at Wed Jun 19 07:55:23 UTC 2013 using JIRA Enterprise Edition, Version: 3.13.2-#335.