Author: jstrachan
Date: Fri Jun 30 06:44:41 2006
New Revision: 418277
URL: http://svn.apache.org/viewvc?rev=418277&view=rev
Log:
Latest export from confluence
Modified:
incubator/activemq/site/per-destination-policies.html
incubator/activemq/site/total-ordering.html
Modified: incubator/activemq/site/per-destination-policies.html
URL:
http://svn.apache.org/viewvc/incubator/activemq/site/per-destination-policies.html?rev=418277&r1=418276&r2=418277&view=diff
==============================================================================
--- incubator/activemq/site/per-destination-policies.html (original)
+++ incubator/activemq/site/per-destination-policies.html Fri Jun 30 06:44:41
2006
@@ -248,10 +248,55 @@
-->
<DIV class="wiki-content"><P>We support a number of different
policies which can be attached to individual destinations (queues, topics) or
to wildcards of queue/topic hierarchies. This makes it easy to configure how
different regions of the JMS destination space are handled.</P>
-<P>Here is an <SPAN class="nobr"><A
href="http://svn.apache.org/repos/asf/incubator/activemq/trunk/activemq-core/src/test/resources/org/apache/activemq/xbean/activemq2.xml"
title="Visit page outside Confluence" rel="nofollow">example<SUP><IMG
class="rendericon" src="http://goopen.org/confluence/images/icons/linkext7.gif"
height="0" width="0" align="absmiddle" alt="" border="0"></SUP></A></SPAN> of
this in use.</P>
+<P>Here is an <SPAN class="nobr"><A
href="http://svn.apache.org/repos/asf/incubator/activemq/trunk/activemq-core/src/test/resources/org/apache/activemq/xbean/activemq-policy.xml"
title="Visit page outside Confluence" rel="nofollow">example<SUP><IMG
class="rendericon" src="http://goopen.org/confluence/images/icons/linkext7.gif"
height="0" width="0" align="absmiddle" alt="" border="0"></SUP></A></SPAN> of
this in use.</P>
<DIV class="code"><DIV class="codeContent">
-<PRE class="code-xml"></PRE>
+<PRE class="code-xml"><SPAN class="code-tag"><beans xmlns=<SPAN
class="code-quote">"http://activemq.org/config/1.0"</SPAN>></SPAN>
+
+ <SPAN class="code-tag"><bean class=<SPAN
class="code-quote">"org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"</SPAN>/></SPAN>
+
+ <SPAN class="code-tag"><broker persistent=<SPAN
class="code-quote">"false"</SPAN> brokerName=<SPAN
class="code-quote">"${brokername}"</SPAN>></SPAN>
+
+ <SPAN class="code-tag"><SPAN class="code-comment"><!-- lets define the
dispatch policy --></SPAN></SPAN>
+ <SPAN class="code-tag"><destinationPolicy></SPAN>
+ <SPAN class="code-tag"><policyMap></SPAN>
+ <SPAN class="code-tag"><policyEntries></SPAN>
+ <SPAN class="code-tag"><policyEntry topic=<SPAN
class="code-quote">"FOO.></SPAN>"</SPAN>>
+ <SPAN class="code-tag"><dispatchPolicy></SPAN>
+ <SPAN class="code-tag"><roundRobinDispatchPolicy /></SPAN>
+ <SPAN class="code-tag"></dispatchPolicy></SPAN>
+ <SPAN class="code-tag"><subscriptionRecoveryPolicy></SPAN>
+ <SPAN class="code-tag"><lastImageSubscriptionRecoveryPolicy
/></SPAN>
+ <SPAN class="code-tag"></subscriptionRecoveryPolicy></SPAN>
+ <SPAN class="code-tag"></policyEntry></SPAN>
+
+ <SPAN class="code-tag"><policyEntry topic=<SPAN
class="code-quote">"ORDERS.></SPAN>"</SPAN>>
+ <SPAN class="code-tag"><dispatchPolicy></SPAN>
+ <SPAN class="code-tag"><strictOrderDispatchPolicy /></SPAN>
+ <SPAN class="code-tag"></dispatchPolicy></SPAN>
+ <SPAN class="code-tag"><SPAN class="code-comment"><!-- 1
minutes worth --></SPAN></SPAN>
+ <SPAN class="code-tag"><subscriptionRecoveryPolicy></SPAN>
+ <SPAN class="code-tag"><timedSubscriptionRecoveryPolicy
recoverDuration=<SPAN class="code-quote">"60000"</SPAN> /></SPAN>
+ <SPAN class="code-tag"></subscriptionRecoveryPolicy></SPAN>
+ <SPAN class="code-tag"></policyEntry></SPAN>
+
+ <SPAN class="code-tag"><policyEntry topic=<SPAN
class="code-quote">"PRICES.></SPAN>"</SPAN>>
+ <SPAN class="code-tag"><SPAN class="code-comment"><!-- 10
seconds worth --></SPAN></SPAN>
+ <SPAN class="code-tag"><subscriptionRecoveryPolicy></SPAN>
+ <SPAN class="code-tag"><timedSubscriptionRecoveryPolicy
recoverDuration=<SPAN class="code-quote">"10000"</SPAN> /></SPAN>
+ <SPAN class="code-tag"></subscriptionRecoveryPolicy></SPAN>
+
+ <SPAN class="code-tag"><SPAN class="code-comment"><!-- lets
force old messages to be discarded for slow consumers --></SPAN></SPAN>
+ <SPAN class="code-tag"><pendingMessageLimitStrategy></SPAN>
+ <SPAN class="code-tag"><constantPendingMessageLimitStrategy
limit=<SPAN class="code-quote">"10"</SPAN>/></SPAN>
+ <SPAN class="code-tag"></pendingMessageLimitStrategy></SPAN>
+ <SPAN class="code-tag"></policyEntry></SPAN>
+ <SPAN class="code-tag"></policyEntries></SPAN>
+ <SPAN class="code-tag"></policyMap></SPAN>
+ <SPAN class="code-tag"></destinationPolicy></SPAN>
+ <SPAN class="code-tag"></broker></SPAN>
+
+<SPAN class="code-tag"></beans></SPAN></PRE>
</DIV></DIV></DIV>
</DIV>
@@ -263,7 +308,7 @@
<DIV id="site-footer">
Added by <A
href="http://goopen.org/confluence/users/viewuserprofile.action?username=jstrachan">James
Strachan</A>,
last edited by <A
href="http://goopen.org/confluence/users/viewuserprofile.action?username=jstrachan">James
Strachan</A> on Jun 30, 2006
- (<A
href="http://goopen.org/confluence/pages/diffpages.action?pageId=146&originalId=8909">view
change</A>)
+ (<A
href="http://goopen.org/confluence/pages/diffpages.action?pageId=146&originalId=8911">view
change</A>)
(<A
href="http://goopen.org/confluence/pages/editpage.action?pageId=146">edit
page</A>)
</DIV>
Modified: incubator/activemq/site/total-ordering.html
URL:
http://svn.apache.org/viewvc/incubator/activemq/site/total-ordering.html?rev=418277&r1=418276&r2=418277&view=diff
==============================================================================
--- incubator/activemq/site/total-ordering.html (original)
+++ incubator/activemq/site/total-ordering.html Fri Jun 30 06:44:41 2006
@@ -69,7 +69,7 @@
<UL class="alternate" type="square">
<LI><A href="home.html" title="Home">Home</A></LI>
<LI><A href="news.html" title="News">News</A></LI>
- <LI><A href="changes-in-40.html" title="Changes in 4.0">New in
4.0</A></LI>
+ <LI><A href="new-features.html" title="New Features">New
Features</A></LI>
<LI><A href="faq.html" title="FAQ">FAQ</A></LI>
<LI><A href="site.html" title="Site">Site</A></LI>
<LI><A href="articles.html" title="Articles">Articles</A></LI>
@@ -159,7 +159,7 @@
<LI><A href="kaha-persistence.html" title="Kaha Persistence">Kaha
Persistence</A></LI>
<LI><A href="async-sends.html" title="Async Sends">Async Sends</A></LI>
<LI><A href="jmsxuserid.html" title="JMSXUserID">JMSXUserID</A></LI>
- <LI><A href="changes-in-40.html" title="Changes in 4.0">Other new
features</A></LI>
+ <LI><A href="new-features.html" title="New Features">More New
Features</A></LI>
</UL>
@@ -169,7 +169,8 @@
<LI><A href="ajax.html" title="Ajax">Ajax</A></LI>
<LI><A href="axis-support.html" title="Axis Support">Axis
Support</A></LI>
<LI><A href="c-integration.html" title="C Integration">C
Integration</A></LI>
- <LI><A href="dot-net.html" title="dot Net">.Net Integration</A></LI>
+ <LI><A href="cms.html" title="CMS">C++ Integration</A></LI>
+ <LI><A href="dot-net.html" title="dot Net">C# and .Net
Integration</A></LI>
<LI><A href="geronimo.html" title="Geronimo">Geronimo</A></LI>
<LI><A href="j2ee.html" title="J2EE">J2EE</A></LI>
<LI><A href="jboss-integration.html" title="JBoss Integration">JBoss
Integration</A></LI>
@@ -245,8 +246,7 @@
<!--
<div class="pagetitle">Total Ordering</div>
-->
- <DIV class="wiki-content">
-<P>Sometimes it can be useful to ensure that every topic consumer sees
messages arriving on the topic in exactly the same order.</P>
+ <DIV class="wiki-content"><P>Sometimes it can be useful to ensure
that every topic consumer sees messages arriving on the topic in exactly the
same order.</P>
<P>Normally we guarrentee the order of all messages sent by the same producer;
however due to multi-threading and asynchronous processing, the messages from
different producers could arrive in different consumers in different orders.
</P>
@@ -264,6 +264,23 @@
<DIV class="code"><DIV class="codeContent">
<PRE class="code-java">consumer1: P1 P2 Q1 P3 Q2
consumer2: P1 P2 Q1 P3 Q2</PRE>
+</DIV></DIV>
+
+<H2><A name="TotalOrdering-ConfiguringTotalOrdering"></A>Configuring Total
Ordering</H2>
+
+<P>Enable the <strictOrderDispatchPolicy/> on the <A
href="per-destination-policies.html" title="Per Destination Policies">Per
Destination Policies</A>. Here's an example</P>
+
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-java"><destinationPolicy>
+ <policyMap>
+ <policyEntries>
+ <policyEntry topic=<SPAN
class="code-quote">">"</SPAN>>
+ <dispatchPolicy>
+ <strictOrderDispatchPolicy />
+ </dispatchPolicy>
+ </policyEntry>
+ </policyEntries></policyMap>
+ </destinationPolicy></PRE>
</DIV></DIV></DIV>
</DIV>
@@ -274,8 +291,8 @@
</DIV>
<DIV id="site-footer">
Added by <A
href="http://goopen.org/confluence/users/viewuserprofile.action?username=jstrachan">James
Strachan</A>,
- last edited by <A
href="http://goopen.org/confluence/users/viewuserprofile.action?username=jstrachan">James
Strachan</A> on May 12, 2006
- (<A
href="http://goopen.org/confluence/pages/diffpages.action?pageId=268&originalId=5436">view
change</A>)
+ last edited by <A
href="http://goopen.org/confluence/users/viewuserprofile.action?username=jstrachan">James
Strachan</A> on Jun 30, 2006
+ (<A
href="http://goopen.org/confluence/pages/diffpages.action?pageId=268&originalId=8910">view
change</A>)
(<A
href="http://goopen.org/confluence/pages/editpage.action?pageId=268">edit
page</A>)
</DIV>