Created
October 7, 2013 11:34
-
-
Save madAndroid/6866393 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[twig-deploy@ip-172-31-108-218 hiera-aws]$ less /etc/activemq/activemq.xml | |
<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" | |
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd | |
http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd"> | |
<!-- Allows us to use system properties as variables in this configuration file --> | |
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> | |
<property name="locations"> | |
<value>file:${activemq.base}/conf/credentials.properties</value> | |
</property> | |
</bean> | |
<!-- | |
The <broker> element is used to configure the ActiveMQ broker. | |
--> | |
<broker xmlns="http://activemq.apache.org/schema/core" brokerName="ip-172-31-108-218.eu-west-1.compute.internal" dataDirectory="${activemq.base}/data"> | |
<destinationPolicy> | |
<policyMap> | |
<policyEntries> | |
<policyEntry queue="*.reply.>" gcInactiveDestinations="true" inactiveTimoutBeforeGC="300000" /> <!-- remove unused queues --> | |
<policyEntry topic=">" producerFlowControl="true" memoryLimit="1mb"> | |
<pendingSubscriberPolicy> | |
<vmCursor /> | |
</pendingSubscriberPolicy> | |
<subscriptionRecoveryPolicy> | |
<noSubscriptionRecoveryPolicy/> | |
</subscriptionRecoveryPolicy> | |
</policyEntry> | |
</policyEntries> | |
</policyMap> | |
</destinationPolicy> | |
<networkConnectors> | |
<networkConnector uri="http://localhost:8181"/> | |
</networkConnectors> | |
<!-- | |
The managementContext is used to configure how ActiveMQ is exposed in | |
JMX. By default, ActiveMQ uses the MBean server that is started by | |
the JVM. For more information, see: | |
http://activemq.apache.org/jmx.html | |
<managementContext> | |
<managementContext createConnector="false"/> | |
</managementContext> | |
--> | |
<!-- | |
Configure message persistence for the broker. The default persistence | |
mechanism is the KahaDB store (identified by the kahaDB tag). | |
For more information, see: | |
http://activemq.apache.org/persistence.html | |
--> | |
<persistenceAdapter> | |
<kahaDB directory="${activemq.base}/data/kahadb"/> | |
</persistenceAdapter> | |
<!-- Tune resource usage --> | |
<systemUsage> | |
<systemUsage> | |
<memoryUsage> | |
<memoryUsage limit="20 mb"/> | |
</memoryUsage> | |
<storeUsage> | |
<storeUsage limit="1 gb" name="foo"/> | |
</storeUsage> | |
<tempUsage> | |
<tempUsage limit="100 mb"/> | |
</tempUsage> | |
</systemUsage> | |
</systemUsage> | |
<!-- | |
The transport connectors expose ActiveMQ over a given protocol to | |
clients and other brokers. For more information, see: | |
http://activemq.apache.org/configuring-transports.html | |
--> | |
<transportConnectors> | |
<transportConnector name="openwire" uri="tcp://0.0.0.0:61616"/> | |
<transportConnector name="stomp" uri="stomp+nio://0.0.0.0:61613"/> | |
</transportConnectors> | |
</broker> | |
<!-- | |
Enable web consoles, REST and Ajax APIs and demos | |
Take a look at ${ACTIVEMQ_HOME}/conf/jetty.xml for more details | |
--> | |
<import resource="jetty.xml"/> | |
</beans> | |
<!-- END SNIPPET: example --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment