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: Ascending order - Click to sort in descending order
Torsten Mielke made changes - 28/Mar/11 09:58 AM
Field Original Value New Value
Link This issue fixes DEV-3055 [ DEV-3055 ]
Torsten Mielke made changes - 29/Mar/11 10:11 AM
Torsten Mielke made changes - 14/Feb/12 10:30 AM
Link This issue fixes ENH-69 [ ENH-69 ]
Timothy Bish made changes - 17/Feb/12 01:39 PM
Assignee Timothy Bish [ tabish121 ]
Dave Stanley made changes - 17/Feb/12 04:34 PM
Fix Version/s 5.6.0-fuse-00-00 [ 11370 ]
Timothy Bish made changes - 17/Feb/12 04:58 PM
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Torsten Mielke made changes - 20/Feb/12 08:17 AM
Fix Version/s 5.5.1-fuse-xx-xx [ 11630 ]
Timothy Bish made changes - 20/Feb/12 09:49 PM
Resolution Fixed [ 1 ]
Status Resolved [ 5 ] Reopened [ 4 ]
Timothy Bish made changes - 01/Mar/12 03:20 PM
Status Reopened [ 4 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Joe Luo made changes - 19/Apr/12 02:37 PM
Link This issue is linked from MB-1145 [ MB-1145 ]