activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r418277 - in /incubator/activemq/site: per-destination-policies.html total-ordering.html
Date Fri, 30 Jun 2006 13:44:41 GMT
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">&lt;beans xmlns=<SPAN class="code-quote">&quot;http://activemq.org/config/1.0&quot;</SPAN>&gt;</SPAN>
+
+  <SPAN class="code-tag">&lt;bean class=<SPAN class="code-quote">&quot;org.springframework.beans.factory.config.PropertyPlaceholderConfigurer&quot;</SPAN>/&gt;</SPAN>
+
+  <SPAN class="code-tag">&lt;broker persistent=<SPAN class="code-quote">&quot;false&quot;</SPAN>
brokerName=<SPAN class="code-quote">&quot;${brokername}&quot;</SPAN>&gt;</SPAN>
+
+    <SPAN class="code-tag"><SPAN class="code-comment">&lt;!--  lets define
the dispatch policy --&gt;</SPAN></SPAN>
+    <SPAN class="code-tag">&lt;destinationPolicy&gt;</SPAN>
+      <SPAN class="code-tag">&lt;policyMap&gt;</SPAN>
+        <SPAN class="code-tag">&lt;policyEntries&gt;</SPAN>
+          <SPAN class="code-tag">&lt;policyEntry topic=<SPAN class="code-quote">&quot;FOO.&gt;</SPAN>&quot;</SPAN>&gt;
+            <SPAN class="code-tag">&lt;dispatchPolicy&gt;</SPAN>
+              <SPAN class="code-tag">&lt;roundRobinDispatchPolicy /&gt;</SPAN>
+            <SPAN class="code-tag">&lt;/dispatchPolicy&gt;</SPAN>
+            <SPAN class="code-tag">&lt;subscriptionRecoveryPolicy&gt;</SPAN>
+              <SPAN class="code-tag">&lt;lastImageSubscriptionRecoveryPolicy /&gt;</SPAN>
+            <SPAN class="code-tag">&lt;/subscriptionRecoveryPolicy&gt;</SPAN>
+          <SPAN class="code-tag">&lt;/policyEntry&gt;</SPAN>
+
+          <SPAN class="code-tag">&lt;policyEntry topic=<SPAN class="code-quote">&quot;ORDERS.&gt;</SPAN>&quot;</SPAN>&gt;
+            <SPAN class="code-tag">&lt;dispatchPolicy&gt;</SPAN>
+              <SPAN class="code-tag">&lt;strictOrderDispatchPolicy /&gt;</SPAN>
+            <SPAN class="code-tag">&lt;/dispatchPolicy&gt;</SPAN>
+            <SPAN class="code-tag"><SPAN class="code-comment">&lt;!--  1
minutes worth --&gt;</SPAN></SPAN>
+            <SPAN class="code-tag">&lt;subscriptionRecoveryPolicy&gt;</SPAN>
+              <SPAN class="code-tag">&lt;timedSubscriptionRecoveryPolicy recoverDuration=<SPAN
class="code-quote">&quot;60000&quot;</SPAN> /&gt;</SPAN>
+            <SPAN class="code-tag">&lt;/subscriptionRecoveryPolicy&gt;</SPAN>
+          <SPAN class="code-tag">&lt;/policyEntry&gt;</SPAN>
+
+          <SPAN class="code-tag">&lt;policyEntry topic=<SPAN class="code-quote">&quot;PRICES.&gt;</SPAN>&quot;</SPAN>&gt;
+            <SPAN class="code-tag"><SPAN class="code-comment">&lt;!--  10
seconds worth --&gt;</SPAN></SPAN>
+            <SPAN class="code-tag">&lt;subscriptionRecoveryPolicy&gt;</SPAN>
+              <SPAN class="code-tag">&lt;timedSubscriptionRecoveryPolicy recoverDuration=<SPAN
class="code-quote">&quot;10000&quot;</SPAN> /&gt;</SPAN>
+            <SPAN class="code-tag">&lt;/subscriptionRecoveryPolicy&gt;</SPAN>
+            
+            <SPAN class="code-tag"><SPAN class="code-comment">&lt;!-- lets
force old messages to be discarded for slow consumers --&gt;</SPAN></SPAN>
+            <SPAN class="code-tag">&lt;pendingMessageLimitStrategy&gt;</SPAN>
+              <SPAN class="code-tag">&lt;constantPendingMessageLimitStrategy limit=<SPAN
class="code-quote">&quot;10&quot;</SPAN>/&gt;</SPAN>
+            <SPAN class="code-tag">&lt;/pendingMessageLimitStrategy&gt;</SPAN>
+          <SPAN class="code-tag">&lt;/policyEntry&gt;</SPAN>
+        <SPAN class="code-tag">&lt;/policyEntries&gt;</SPAN>
+      <SPAN class="code-tag">&lt;/policyMap&gt;</SPAN>
+    <SPAN class="code-tag">&lt;/destinationPolicy&gt;</SPAN>
+  <SPAN class="code-tag">&lt;/broker&gt;</SPAN>
+
+<SPAN class="code-tag">&lt;/beans&gt;</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
-                  &nbsp;(<A href="http://goopen.org/confluence/pages/diffpages.action?pageId=146&originalId=8909">view
change</A>)
+                  &nbsp;(<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 &lt;strictOrderDispatchPolicy/&gt; on the <A href="per-destination-policies.html"
title="Per Destination Policies">Per Destination Policies</A>. Here&apos;s an
example</P>
+
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-java">&lt;destinationPolicy&gt;
+      &lt;policyMap&gt;
+        &lt;policyEntries&gt;
+          &lt;policyEntry topic=<SPAN class="code-quote">&quot;&gt;&quot;</SPAN>&gt;
+            &lt;dispatchPolicy&gt;
+              &lt;strictOrderDispatchPolicy /&gt;
+            &lt;/dispatchPolicy&gt;
+          &lt;/policyEntry&gt;
+      &lt;/policyEntries&gt;&lt;/policyMap&gt;
+    &lt;/destinationPolicy&gt;</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
-                  &nbsp;(<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
+                  &nbsp;(<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>



Mime
View raw message