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 786b5fe commit 43b6be0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 5 additions & 1 deletion fcrepo-webapp/src/main/resources/config/activemq.xml
Expand Up @@ -2,9 +2,13 @@
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:amq="http://activemq.apache.org/schema/core"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
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
7 changes: 2 additions & 5 deletions fcrepo-webapp/src/test/resources/spring-test/rest.xml
Expand Up @@ -2,17 +2,14 @@
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd">
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd">


<context:property-placeholder/>

<!-- Context that houses JAX-RS Resources that compose the API
as well as som utility gear. -->
<!-- Context that houses JAX-RS Resources that support the API. -->

<context:annotation-config/>

Expand Down

0 comments on commit 43b6be0

Please sign in to comment.