activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lopan <>
Subject Re: Retrieve number of pending messages in the queue
Date Thu, 16 Sep 2010 22:07:58 GMT

Here is the activemq.xml file:

<beans xmlns=""
- <!--  Allows us to use system properties as variables in this
configuration file 
- <bean
- <property name="locations">
- <!--  
        The <broker> element is used to configure the ActiveMQ broker. 
- <broker xmlns=""
brokerName="localhost" dataDirectory="${activemq.base}/data"
- <!-- 			For better performances use VM cursor and small memory limit.
			For more information, see:
            Also, if your producer is "hanging", it's probably due to
producer flow control.
            For more information, see:
- <destinationPolicy>
- <policyMap>
- <policyEntries>
- <policyEntry topic=">" producerFlowControl="true" memoryLimit="1mb">
- <pendingSubscriberPolicy>
  <vmCursor /> 
- <policyEntry queue=">" producerFlowControl="true" memoryLimit="1mb">
- <!--  Use VM cursor for better latency
                       For more information, see:
- <!--  
            The managementContext is used to configure how ActiveMQ is
exposed in 
            JMX. By default, ActiveMQ uses the MBean server that is started
            the JVM. For more information, see: 
- <managementContext>
  <managementContext createConnector="false" /> 
- <!--  
            Configure message persistence for the broker. The default
            mechanism is the KahaDB store (identified by the kahaDB tag). 
            For more information, see: 
- <persistenceAdapter>
  <kahaDB directory="${activemq.base}/data/kahadb" /> 
- <!--             The systemUsage controls the maximum amount of space the
broker will 
            use before slowing down producers. For more information, see:
                    <memoryUsage limit="20 mb"/>
                    <storeUsage limit="1 gb"/>
                    <tempUsage limit="100 mb"/>
- <!--  
            The transport connectors expose ActiveMQ over a given protocol
            clients and other brokers. For more information, see: 
- <transportConnectors>
  <transportConnector name="openwire" uri="tcp://" /> 
- <plugins>
  <statisticsBrokerPlugin /> 
- <!--  
        Uncomment to enable Camel
        Take a look at activemq-camel.xml for more details
    <import resource="camel.xml"/>
- <!--  
        Enable web consoles, REST and Ajax APIs and demos
        Take a look at activemq-jetty.xml for more details 
  <import resource="jetty.xml" /> 
View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message