Author: jstrachan
Date: Fri Jul  7 10:14:46 2006
New Revision: 419929

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

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

Modified: incubator/activemq/site/features.html
URL: 
http://svn.apache.org/viewvc/incubator/activemq/site/features.html?rev=419929&r1=419928&r2=419929&view=diff
==============================================================================
--- incubator/activemq/site/features.html (original)
+++ incubator/activemq/site/features.html Fri Jul  7 10:14:46 2006
@@ -169,7 +169,7 @@
        <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="cms.html" title="CMS">C++ Integration</A></LI>
+       <LI><A href="activemq-cpp-client.html" title="ActiveMQ CPP 
Client">C+&#43; 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>
@@ -237,7 +237,7 @@
 <H3><A name="Navigation-Toolsweuse"></A>Tools we use</H3>
 
 <P><SPAN class="nobr"><A href="http://www.yourkit.com/"; title="Visit page 
outside Confluence" rel="nofollow"><IMG 
src="http://incubator.apache.org/activemq/images/yourkit.jpg"; align="absmiddle" 
border="0"><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><BR>
-<SPAN class="nobr"><A 
href="http://www.ej-technologies.com/products/jprofiler/overview.html"; 
title="Visit page outside Confluence" rel="nofollow"><IMG 
src="http://incubator.apache.org/activemq/images/logo_jprofiler01.gif"; 
width="120" height="40" align="absmiddle" border="0"><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></P>
+<SPAN class="nobr"><A 
href="http://goopen.org/confluence/pages/createpage.action?spaceKey=ACTIVEMQ&title=width%3D120,height%3D40!&linkCreation=true&fromPageId=97";
 title="http://www.ej-technologies.com/products/jprofiler/overview.html"; 
class="createlink"><IMG 
src="http://incubator.apache.org/activemq/images/logo_jprofiler01.gif"; 
width="120" height="40" align="absmiddle" border="0"><SUP><IMG 
class="rendericon" src="http://goopen.org/confluence/images/icons/plus.gif"; 
height="7" width="7" align="absmiddle" alt="" border="0"></SUP></A></SPAN></P>
           </DIV>
         </TD>
         <TD valign="top">
@@ -257,16 +257,16 @@
               <a href="javascript:hideChildren()">Hide Children</a></span>
           </div>
           <div class="greybox" id="children" style="display: none;">
-                                      <a 
href="http://goopen.org/confluence/display/ACTIVEMQ/Async+Sends"; title="Async 
Sends">Async Sends</a>
+                                      <a 
href="http://goopen.org/confluence/display/ACTIVEMQ/Per+Destination+Policies"; 
title="Per Destination Policies">Per Destination Policies</a>
               <span class="smalltext">(ActiveMQ)</span>
               <br>
-                          <a 
href="http://goopen.org/confluence/display/ACTIVEMQ/New+Features"; title="New 
Features">New Features</a>
+                          <a 
href="http://goopen.org/confluence/display/ACTIVEMQ/Async+Sends"; title="Async 
Sends">Async Sends</a>
               <span class="smalltext">(ActiveMQ)</span>
               <br>
-                          <a 
href="http://goopen.org/confluence/display/ACTIVEMQ/Destination+Options"; 
title="Destination Options">Destination Options</a>
+                          <a 
href="http://goopen.org/confluence/display/ACTIVEMQ/New+Features"; title="New 
Features">New Features</a>
               <span class="smalltext">(ActiveMQ)</span>
               <br>
-                          <a 
href="http://goopen.org/confluence/display/ACTIVEMQ/Per+Destination+Policies"; 
title="Per Destination Policies">Per Destination Policies</a>
+                          <a 
href="http://goopen.org/confluence/display/ACTIVEMQ/Destination+Options"; 
title="Destination Options">Destination Options</a>
               <span class="smalltext">(ActiveMQ)</span>
               <br>
                           <a 
href="http://goopen.org/confluence/display/ACTIVEMQ/Total+Ordering"; 
title="Total Ordering">Total Ordering</a>

Modified: incubator/activemq/site/message-groups.html
URL: 
http://svn.apache.org/viewvc/incubator/activemq/site/message-groups.html?rev=419929&r1=419928&r2=419929&view=diff
==============================================================================
--- incubator/activemq/site/message-groups.html (original)
+++ incubator/activemq/site/message-groups.html Fri Jul  7 10:14:46 2006
@@ -169,7 +169,7 @@
        <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="cms.html" title="CMS">C++ Integration</A></LI>
+       <LI><A href="activemq-cpp-client.html" title="ActiveMQ CPP 
Client">C+&#43; 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>
@@ -237,7 +237,7 @@
 <H3><A name="Navigation-Toolsweuse"></A>Tools we use</H3>
 
 <P><SPAN class="nobr"><A href="http://www.yourkit.com/"; title="Visit page 
outside Confluence" rel="nofollow"><IMG 
src="http://incubator.apache.org/activemq/images/yourkit.jpg"; align="absmiddle" 
border="0"><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><BR>
-<SPAN class="nobr"><A 
href="http://www.ej-technologies.com/products/jprofiler/overview.html"; 
title="Visit page outside Confluence" rel="nofollow"><IMG 
src="http://incubator.apache.org/activemq/images/logo_jprofiler01.gif"; 
width="120" height="40" align="absmiddle" border="0"><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></P>
+<SPAN class="nobr"><A 
href="http://goopen.org/confluence/pages/createpage.action?spaceKey=ACTIVEMQ&title=width%3D120,height%3D40!&linkCreation=true&fromPageId=97";
 title="http://www.ej-technologies.com/products/jprofiler/overview.html"; 
class="createlink"><IMG 
src="http://incubator.apache.org/activemq/images/logo_jprofiler01.gif"; 
width="120" height="40" align="absmiddle" border="0"><SUP><IMG 
class="rendericon" src="http://goopen.org/confluence/images/icons/plus.gif"; 
height="7" width="7" align="absmiddle" alt="" border="0"></SUP></A></SPAN></P>
           </DIV>
         </TD>
         <TD valign="top">
@@ -326,6 +326,23 @@
 
 <P>In summary; if ordering or per-message caching and synchronization are in 
any way important to you then we highly recommend you use message groups to 
partition your traffic.</P>
 
+<H3><A 
name="MessageGroups-Gettingnotifiedofownershipchangesofmessagegroups"></A>Getting
 notified of ownership changes of message groups</H3>
+
+<P>In 4.1 onwards of ActiveMQ there is support for a new boolean header called 
<B>JMSXGroupFirstForConsumer</B> which will be set on the first message which 
is sent to a consumer for a particular message group.</P>
+
+<P>If the JMS connection is using <B>failover:</B> and a temporary network 
error occurs so that the connection disconnects from the broker and reconnects 
some time later, a new consumer instance will be created under the covers of 
the JMS client leading to the possibility of another message with this header 
being set for the same message group.</P>
+
+<P>So you can do code like...</P>
+
+<DIV class="code"><DIV class="codeContent">
+<PRE class="code-java"><SPAN class="code-object">String</SPAN> groupId = 
message.getStringProperty(<SPAN 
class="code-quote">&quot;JMSXGroupId&quot;</SPAN>);
+<SPAN class="code-keyword">if</SPAN> (message.getBooleanProperty(<SPAN 
class="code-quote">&quot;JMSXGroupFirstForConsumer&quot;</SPAN>)) {
+   <SPAN class="code-comment">// flush cache <SPAN 
class="code-keyword">for</SPAN> groupId
+</SPAN>}</PRE>
+</DIV></DIV>
+
+<P>To flush caches to ensure consistent state when faced with network 
errors.</P>
+
 <H3><A name="MessageGroups-See"></A>See</H3>
 
 <UL>
@@ -341,8 +358,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 Jun 19, 2006
-                  &nbsp;(<A 
href="http://goopen.org/confluence/pages/diffpages.action?pageId=231&originalId=8814";>view
 change</A>)
+    last edited by     <A 
href="http://goopen.org/confluence/users/viewuserprofile.action?username=jstrachan";>James
 Strachan</A> on Jul 07, 2006
+                  &nbsp;(<A 
href="http://goopen.org/confluence/pages/diffpages.action?pageId=231&originalId=8984";>view
 change</A>)
               
       (<A 
href="http://goopen.org/confluence/pages/editpage.action?pageId=231";>edit 
page</A>)
     </DIV>


Reply via email to