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/11/14 10:21:54 UTC
svn commit: r886602 - in /websites/production/activemq/content:
cache/main.pageCache dispatch-policies.html
Author: buildbot
Date: Thu Nov 14 09:21:54 2013
New Revision: 886602
Log:
Production update by buildbot for activemq
Modified:
websites/production/activemq/content/cache/main.pageCache
websites/production/activemq/content/dispatch-policies.html
Modified: websites/production/activemq/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.
Modified: websites/production/activemq/content/dispatch-policies.html
==============================================================================
--- websites/production/activemq/content/dispatch-policies.html (original)
+++ websites/production/activemq/content/dispatch-policies.html Thu Nov 14 09:21:54 2013
@@ -101,11 +101,70 @@ The latter behaviour is enabled by setti
<h2><a shape="rect" name="DispatchPolicies-DispatchpoliciesforTopics"></a>Dispatch policies for Topics</h2>
<p>There are more options for topics because the dispatch policy is plug-able. Any implementation of org.apache.activemq.broker.region.policy.DispatchPolicy will work.<br clear="none">
-The default org.apache.activemq.broker.region.policy.SimpleDispatchPolicy does what one would expect and delivers messages to all consumers. An example of a more advanced implementation is the org.apache.activemq.broker.region.policy.PriorityNetworkDispatchPolicy which will only dispatch to the highest priority network consumer. This is useful in a loop network topology where there is more than route to a consumer.</p>
+The default org.apache.activemq.broker.region.policy.SimpleDispatchPolicy does what one would expect and delivers messages to all subscribers. An example of a more advanced implementation is the org.apache.activemq.broker.region.policy.PriorityNetworkDispatchPolicy which will only dispatch to the highest priority network consumer. This is useful in a loop network topology where there is more than route to a consumer.</p>
-<p>Here is an <a shape="rect" class="external-link" href="http://svn.apache.org/repos/asf/activemq/trunk/activemq-core/src/test/resources/org/apache/activemq/xbean/activemq-policy.xml">example of destination policy configuration</a>.</p>
+<p>Here is an <a shape="rect" class="external-link" href="http://svn.apache.org/repos/asf/activemq/trunk/activemq-unit-tests/src/test/resources/org/apache/activemq/xbean/activemq-policy.xml">example of destination policy configuration</a>.</p>
-<div class="error"><span class="error">Error formatting macro: snippet: java.lang.IndexOutOfBoundsException: Index: 20, Size: 20</span> </div></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></div>
</td>
<td valign="top">
<div class="navigation">