You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by bu...@apache.org on 2013/07/23 22:21:42 UTC
svn commit: r870871 - in /websites/production/activemq/content:
cache/main.pageCache slow-consumer-handling.html
Author: buildbot
Date: Tue Jul 23 20:21:41 2013
New Revision: 870871
Log:
Production update by buildbot for activemq
Modified:
websites/production/activemq/content/cache/main.pageCache
websites/production/activemq/content/slow-consumer-handling.html
Modified: websites/production/activemq/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.
Modified: websites/production/activemq/content/slow-consumer-handling.html
==============================================================================
--- websites/production/activemq/content/slow-consumer-handling.html (original)
+++ websites/production/activemq/content/slow-consumer-handling.html Tue Jul 23 20:21:41 2013
@@ -32,16 +32,6 @@
</style>
<![endif]-->
- <link href='http://activemq.apache.org/styles/highlighter/styles/shCore.css' rel='stylesheet' type='text/css' />
- <link href='http://activemq.apache.org/styles/highlighter/styles/shThemeEclipse.css' rel='stylesheet' type='text/css' />
- <script src='http://activemq.apache.org/styles/highlighter/scripts/shCore.js' type='text/javascript'></script>
- <script src='http://activemq.apache.org/styles/highlighter/scripts/shBrushJava.js' type='text/javascript'></script>
- <script src='http://activemq.apache.org/styles/highlighter/scripts/shBrushXml.js' type='text/javascript'></script>
-
- <script type="text/javascript">
- SyntaxHighlighter.defaults['toolbar'] = false;
- SyntaxHighlighter.all();
- </script>
<title>
Apache ActiveMQ ™ -- Slow Consumer Handling
@@ -153,7 +143,66 @@
<p>The following example shows an ActiveMQ broker configuration file. Notice that for topics in the <b>PRICES.></b> wildcard range the <b>pendingMessageLimitStrategy</b> property is set to only keep around 10 messages for each consumer above their prefetch buffer size.</p>
-<div class="error"><span class="error">Error formatting macro: snippet: java.lang.IndexOutOfBoundsException: Index: 20, Size: 20</span> </div>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[
+<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">
+
+ <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
+
+ <broker persistent="false" brokerName="${brokername}" xmlns="http://activemq.apache.org/schema/core">
+
+ <!-- lets define the dispatch policy -->
+ <destinationPolicy>
+ <policyMap>
+ <policyEntries>
+ <policyEntry topic="FOO.>">
+ <dispatchPolicy>
+ <roundRobinDispatchPolicy />
+ </dispatchPolicy>
+ <subscriptionRecoveryPolicy>
+ <lastImageSubscriptionRecoveryPolicy />
+ </subscriptionRecoveryPolicy>
+ </policyEntry>
+
+ <policyEntry topic="ORDERS.>">
+ <dispatchPolicy>
+ <strictOrderDispatchPolicy />
+ </dispatchPolicy>
+ <!-- 1 minutes worth -->
+ <subscriptionRecoveryPolicy>
+ <timedSubscriptionRecoveryPolicy recoverDuration="60000" />
+ </subscriptionRecoveryPolicy>
+ </policyEntry>
+
+ <policyEntry topic="PRICES.>">
+
+ <!-- lets force old messages to be discarded for slow consumers -->
+ <pendingMessageLimitStrategy>
+ <constantPendingMessageLimitStrategy limit="10"/>
+ </pendingMessageLimitStrategy>
+
+ <!-- 10 seconds worth -->
+ <subscriptionRecoveryPolicy>
+ <timedSubscriptionRecoveryPolicy recoverDuration="10000" />
+ </subscriptionRecoveryPolicy>
+
+ </policyEntry>
+ <policyEntry tempTopic="true" advisoryForConsumed="true" />
+
+ <policyEntry tempQueue="true" advisoryForConsumed="true" />
+ </policyEntries>
+ </policyMap>
+ </destinationPolicy>
+ </broker>
+
+</beans>
+]]></script>
+</div></div>
<h2><a shape="rect" name="SlowConsumerHandling-Usagetips"></a>Usage tips</h2>