Author: jstrachan
Date: Mon Jun 19 07:54:29 2006
New Revision: 415348

URL: http://svn.apache.org/viewvc?rev=415348&view=rev
Log:
Latest export from confluence

Modified:
    incubator/activemq/site/message-groups.html

Modified: incubator/activemq/site/message-groups.html
URL: 
http://svn.apache.org/viewvc/incubator/activemq/site/message-groups.html?rev=415348&r1=415347&r2=415348&view=diff
==============================================================================
--- incubator/activemq/site/message-groups.html (original)
+++ incubator/activemq/site/message-groups.html Mon Jun 19 07:54:29 2006
@@ -245,8 +245,7 @@
 <!--          
             <div class="pagetitle">Message Groups</div>
 -->
-            <DIV class="wiki-content">
-<P>Message Groups rock! <IMG class="emoticon" 
src="http://goopen.org/confluence/images/icons/emoticons/smile.gif"; height="20" 
width="20" align="absmiddle" alt="" border="0"> They are an enhancement to the 
<A href="exclusive-consumer.html" title="Exclusive Consumer">Exclusive 
Consumer</A> feature to provide</P>
+            <DIV class="wiki-content"><P>Message Groups rock! <IMG 
class="emoticon" 
src="http://goopen.org/confluence/images/icons/emoticons/smile.gif"; height="20" 
width="20" align="absmiddle" alt="" border="0"> They are an enhancement to the 
<A href="exclusive-consumer.html" title="Exclusive Consumer">Exclusive 
Consumer</A> feature to provide</P>
 
 <UL>
        <LI>guarranteed ordering of the processing of related messages across a 
single queue</LI>
@@ -271,6 +270,16 @@
 </DIV></DIV>
 
 
+<H3><A name="MessageGroups-ClosingaMessageGroup"></A>Closing a Message 
Group</H3>
+
+<P>You generally don&apos;t need to close a message group; just keep using it. 
However if you really do want to close a group you can add a zero sequence 
number.</P>
+
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-java">message.setIntProperty(<SPAN 
class="code-quote">&quot;JMSXGroupSeq&quot;</SPAN>, 0);</PRE>
+</DIV></DIV>
+
+<P>This then <EM>closes</EM> the message group so if another message is sent 
in the future with the same message group ID it will be reassigned to a new 
consumer.</P>
+
 <H3><A name="MessageGroups-Example"></A>Example</H3>
 
 <P>Lets say we are doing some kind of order matching system where people are 
buying and selling things (stocks, shares, placing online bets, whatever).</P>
@@ -315,8 +324,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=231&originalId=5449";>view
 change</A>)
+    last edited by     <A 
href="http://goopen.org/confluence/users/viewuserprofile.action?username=jstrachan";>James
 Strachan</A> on Jun 19, 2006
+                  &nbsp;(<A 
href="http://goopen.org/confluence/pages/diffpages.action?pageId=231&originalId=8809";>view
 change</A>)
               
       (<A 
href="http://goopen.org/confluence/pages/editpage.action?pageId=231";>edit 
page</A>)
     </DIV>


Reply via email to