activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Caplan <>
Subject Recommended ActiveMQ Config for Stomp
Date Wed, 02 Jul 2008 16:52:41 GMT

Hi there,

I’m working on tightening up my ActiveMQ config for Stomp only use, and am
trying to refine my config to this end.  There are a couple of points in my
config, and the “Complex Single Broker Configuration (Stomp only)” [CSBS]
( that I am
unsure about.  What I am hoping to achieve is a simple single broker, stomp
only, and access limited by IP.

I worked from the base config file bundled with the distro, and came up with
the below.  The config points that I am unsure of include:

•	destinationPolicy (why doesn’t the CSBS example implement this?)
•	persistenceAdapter (why doesn’t the CSBS example implement this?)
•	systemUsage (why doesn’t the CSBS example implement this?)
•	Can I implement a rule that tells the broker that stomp requests are to be
only accepted from an IP (or series of IPs)
•	Can I implement a rule that tells the web UI to be restricted by IP as

Thanks for the feedback!



    <!-- Allows us to use system properties as variables in this
configuration file -->

    <broker xmlns=""
brokerName="localhost" dataDirectory="${activemq.base}/data">

        <!-- Destination specific policies using destination names or
wildcards -->
                    <policyEntry queue=">" memoryLimit="5mb"/>
                    <policyEntry topic=">" memoryLimit="5mb">

        <!-- Use the following to configure how ActiveMQ is exposed in JMX
            <managementContext createConnector="false"/>

            <amqPersistenceAdapter syncOnWrite="false"
directory="${activemq.base}/data" maxFileLength="20 mb"/>

        <!--  The maximum about of space the broker will use before slowing
down producers -->
                    <memoryUsage limit="20 mb"/>
                    <storeUsage limit="1 gb" name="foo"/>
                    <tempUsage limit="100 mb"/>

        <!-- The transport connectors ActiveMQ will listen to -->
            <transportConnector name="stomp" uri="stomp://localhost:61613"/>


    <!-- An embedded servlet engine for serving up the Admin console -->
    <jetty xmlns="">
            <nioConnector port="8161"/>

            <webAppContext contextPath="/admin"
resourceBase="${activemq.base}/webapps/admin" logUrlOnStart="true"/>

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message