Effective October 27, 2012, online and email support for FuseSource products will move to Red Hat support channels. For more information, please see the JIRA Migration to Red Hat FAQ.
As of October 27th, please open all new issues in the Red Hat Customer Portal .
Issue Details (XML | Word | Printable)

Key: MB-847
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Timothy Bish
Reporter: Torsten Mielke
Votes: 0
Watchers: 3
Operations

If you were logged in you would be able to see more operations.
FUSE Message Broker

Allow for easy externalization of ActiveMQ configuration

Created: 24/Mar/11 04:03 PM   Updated: 19/Apr/12 02:37 PM
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

Issue Links:
Linked
 

External Issue URL: https://issues.apache.org/jira/browse/AMQ-3248


 Description  « Hide
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.



 All   Comments   Change History      Sort Order: Descending order - Click to sort in ascending order
Timothy Bish added a comment - 20/Feb/12 09:49 PM
Reopen so we can merge into next fuse 5.5.1 release

Timothy Bish added a comment - 17/Feb/12 04:58 PM
fixed, will be in the 5.6.0 release