Skip to content

Commit

Permalink
Parameterizing ActiveMQ port per: https://www.pivotaltracker.com/stor…
Browse files Browse the repository at this point in the history
  • Loading branch information
ajs6f committed Apr 26, 2013
1 parent 43b6be0 commit 263ba6c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
@@ -1,10 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:amq="http://activemq.apache.org/schema/core"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd">

<context:property-placeholder/>

<!--
The <broker> element is used to configure the ActiveMQ broker.
-->
Expand Down Expand Up @@ -107,7 +111,7 @@
<transportConnectors>
<!-- DOS protection, limit concurrent connections to 1000 and frame size to 100MB -->
<transportConnector name="openwire"
uri="tcp://0.0.0.0:61616?maximumConnections=1000&amp;wireformat.maxFrameSize=104857600"
uri="tcp://0.0.0.0:${activemq.port:61616}?maximumConnections=1000&amp;wireformat.maxFrameSize=104857600"
/>
</transportConnectors>

Expand Down
Expand Up @@ -19,7 +19,7 @@
</bean>

<bean name="jmsBroker" class="org.apache.activemq.xbean.BrokerFactoryBean">
<property name="config" value="classpath:/META-INF/spring/activemq.xml"/>
<property name="config" value="classpath:/config/activemq.xml"/>
<property name="start" value="true"/>
</bean>

Expand Down

0 comments on commit 263ba6c

Please sign in to comment.