Added a <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/> to all activemq configuation files so that system properties can be used in the configuration of the broker.

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@385689 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hiram R. Chirino 2006-03-13 22:55:24 +00:00
parent bca8575209
commit 281fd8ded0
25 changed files with 37 additions and 4 deletions

View File

@ -16,6 +16,7 @@
-->
<!-- START SNIPPET: xbean -->
<beans xmlns="http://activemq.org/config/1.0">
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
<broker useJmx="false">

View File

@ -15,6 +15,7 @@
limitations under the License.
-->
<beans xmlns="http://activemq.org/config/1.0">
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
<broker brokerName="master" persistent="false" useJmx="false">
<transportConnectors>

View File

@ -15,6 +15,7 @@
limitations under the License.
-->
<beans xmlns="http://activemq.org/config/1.0">
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
<broker brokerName="slave" persistent="false" useJmx="false" masterConnectorURI="tcp://localhost:62001">
<transportConnectors>

View File

@ -18,6 +18,7 @@
<!-- this file can only be parsed using the xbean-spring library -->
<!-- START SNIPPET: xbean -->
<beans xmlns="http://activemq.org/config/1.0">
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
<broker persistent="false">

View File

@ -17,8 +17,9 @@
<!-- START SNIPPET: spring -->
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
<!-- an embedded broker -->
<bean id="broker" class="org.apache.activemq.broker.BrokerService"

View File

@ -15,6 +15,7 @@
limitations under the License.
-->
<beans xmlns="http://activemq.org/config/1.0">
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
<usageManager id="memory-manager" limit="1048576"/> <!-- 1 meg limit -->

View File

@ -16,6 +16,7 @@
-->
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
<bean id="policy" class="org.apache.activemq.filter.DummyPolicy">
<property name="entries">

View File

@ -17,6 +17,8 @@
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
<!-- remote broker -->
<bean id="remotebroker" class="org.apache.activemq.broker.BrokerService"

View File

@ -17,6 +17,8 @@
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
<!-- remote broker -->
<bean id="remotebroker" class="org.apache.activemq.broker.BrokerService"

View File

@ -17,6 +17,8 @@
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
<!-- remote broker -->
<bean id="remotebroker" class="org.apache.activemq.broker.BrokerService"

View File

@ -15,6 +15,7 @@
limitations under the License.
-->
<beans xmlns="http://activemq.org/config/1.0">
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
<broker brokerName="localBroker" persistent="true" useShutdownHook="false">
<transportConnectors>

View File

@ -15,6 +15,7 @@
limitations under the License.
-->
<beans xmlns="http://activemq.org/config/1.0">
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
<broker brokerName="remoteBroker" persistent="true" useShutdownHook="false">
<transportConnectors>

View File

@ -15,6 +15,7 @@
limitations under the License.
-->
<beans xmlns="http://activemq.org/config/1.0">
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
<broker brokerName="slowConsumerBroker" persistent="true" useShutdownHook="false">
<transportConnectors>

View File

@ -18,6 +18,7 @@
<!-- this file can only be parsed using the xbean-spring library -->
<!-- START SNIPPET: xbean -->
<beans xmlns="http://activemq.org/config/1.0">
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
<broker useJmx="false" persistent="false">

View File

@ -18,6 +18,7 @@
<!-- this file can only be parsed using the xbean-spring library -->
<!-- START SNIPPET: xbean -->
<beans xmlns="http://activemq.org/config/1.0">
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
<broker persistent="false">

View File

@ -18,6 +18,7 @@
<!-- this file can only be parsed using the xbean-spring library -->
<!-- START SNIPPET: xbean -->
<beans xmlns="http://activemq.org/config/1.0">
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
<broker persistent="false">

View File

@ -19,6 +19,7 @@
<!-- START SNIPPET: xbean -->
<beans xmlns="http://activemq.org/config/1.0"
xmlns:s="http://xbean.org/spring/">
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
<broker persistent="false">

View File

@ -18,6 +18,7 @@
<!-- this file can only be parsed using the xbean-spring library -->
<!-- START SNIPPET: xbean -->
<beans xmlns="http://activemq.org/config/1.0">
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
<broker persistent="false">

View File

@ -19,7 +19,9 @@
<!-- START SNIPPET: xbean -->
<beans xmlns="http://activemq.org/config/1.0">
<broker persistent="false">
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
<broker persistent="false" brokerName="${brokername}">
<!-- lets define the dispatch policy -->
<destinationPolicy>

View File

@ -19,10 +19,12 @@
<!-- START SNIPPET: xbean -->
<beans xmlns="http://activemq.org/config/1.0">
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
<broker useJmx="true">
<persistenceAdapter>
<journaledJDBC journalLogFiles="5" dataDirectory="foo" />
<journaledJDBC journalLogFiles="5" dataDirectory="${basedir}/target/foo" />
</persistenceAdapter>
<transportConnectors>

View File

@ -17,6 +17,8 @@
<beans xmlns="http://activemq.org/config/1.0">
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
<!-- for easier integration with the JUnit tests, lets not start the broker when the ApplicationContext starts -->
<broker useJmx="true" start="false">
<destinationPolicy>
@ -37,7 +39,7 @@
<persistenceAdapter>
<journaledJDBC journalLogFiles="5" dataDirectory="../data" />
<journaledJDBC journalLogFiles="5" dataDirectory="${basedir}/target/data" />
</persistenceAdapter>
<transportConnectors>

View File

@ -19,6 +19,8 @@
<!-- START SNIPPET: xbean -->
<beans xmlns="http://activemq.org/config/1.0">
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
<broker useJmx="true">
<transportConnectors>

View File

@ -18,6 +18,7 @@
<!-- this file can only be parsed using the xbean-spring library -->
<!-- START SNIPPET: xbean -->
<beans xmlns="http://activemq.org/config/1.0">
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
<broker useJmx="false">

View File

@ -19,6 +19,8 @@
<!-- START SNIPPET: xbean -->
<beans xmlns="http://activemq.org/config/1.0">
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
<broker useJmx="true">
<managementContext>
<managementContext connectorPort="2011" jmxDomainName="test.domain"/>

View File

@ -19,6 +19,7 @@
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<!-- an embedded broker -->
<bean id="broker" class="org.apache.activemq.xbean.BrokerFactoryBean">