Return-Path: Delivered-To: apmail-geronimo-activemq-commits-archive@www.apache.org Received: (qmail 20639 invoked from network); 19 Jun 2006 14:54:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Jun 2006 14:54:53 -0000 Received: (qmail 82733 invoked by uid 500); 19 Jun 2006 14:54:52 -0000 Delivered-To: apmail-geronimo-activemq-commits-archive@geronimo.apache.org Received: (qmail 82664 invoked by uid 500); 19 Jun 2006 14:54:52 -0000 Mailing-List: contact activemq-commits-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-dev@geronimo.apache.org Delivered-To: mailing list activemq-commits@geronimo.apache.org Received: (qmail 82580 invoked by uid 99); 19 Jun 2006 14:54:51 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Jun 2006 07:54:51 -0700 X-ASF-Spam-Status: No, hits=-6.5 required=10.0 tests=ALL_TRUSTED,FUZZY_GUARANTEE,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [140.211.166.113] (HELO eris.apache.org) (140.211.166.113) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Jun 2006 07:54:50 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 0FA2D1A983A; Mon, 19 Jun 2006 07:54:30 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r415348 - /incubator/activemq/site/message-groups.html Date: Mon, 19 Jun 2006 14:54:29 -0000 To: activemq-commits@geronimo.apache.org From: jstrachan@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20060619145430.0FA2D1A983A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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 @@ -
-

Message Groups rock! They are an enhancement to the Exclusive Consumer feature to provide

+

Message Groups rock! They are an enhancement to the Exclusive Consumer feature to provide

  • guarranteed ordering of the processing of related messages across a single queue
  • @@ -271,6 +270,16 @@
+

Closing a Message Group

+ +

You generally don'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.

+ +
+
message.setIntProperty("JMSXGroupSeq", 0);
+
+ +

This then closes 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.

+

Example

Lets say we are doing some kind of order matching system where people are buying and selling things (stocks, shares, placing online bets, whatever).

@@ -315,8 +324,8 @@