Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 69156 invoked from network); 23 Feb 2009 14:57:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Feb 2009 14:57:24 -0000 Received: (qmail 26930 invoked by uid 500); 23 Feb 2009 14:57:23 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 26885 invoked by uid 500); 23 Feb 2009 14:57:23 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 26779 invoked by uid 500); 23 Feb 2009 14:57:23 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 26751 invoked by uid 99); 23 Feb 2009 14:57:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Feb 2009 06:57:22 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Feb 2009 14:57:20 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 0E499234C4AB for ; Mon, 23 Feb 2009 06:57:00 -0800 (PST) Message-ID: <1045875536.1235401020057.JavaMail.jira@brutus> Date: Mon, 23 Feb 2009 06:57:00 -0800 (PST) From: "Claus Ibsen (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Resolved: (CAMEL-136) resequencer should support an optional Expression/Comparator to determine if the two messages belong to the same set (in which case should they be reordered) In-Reply-To: <12703473.1189078523123.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/CAMEL-136?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen resolved CAMEL-136. ------------------------------- Resolution: Fixed > resequencer should support an optional Expression/Comparator to determine if the two messages belong to the same set (in which case should they be reordered) > -------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: CAMEL-136 > URL: https://issues.apache.org/activemq/browse/CAMEL-136 > Project: Apache Camel > Issue Type: Improvement > Reporter: James Strachan > Priority: Minor > Fix For: 2.0.0 > > > e.g. to support reordering according to the JMSXGroupID / JMSXGroupSeq headers we only reorder messages for the same value of JMSXGroupID if the sequence numbers are out of range. > For ActiveMQ we generally only reorder messages for the same Destination and ProducerId but differing ProducerSequenceId. > So in pseudocode its > {code} > if (groupComparator.compare(firstMessage, secondMessage) == 0) { > if (messageComparator.compare(firstMessage, secondMessage) > 0) { > // lets swap the messages > } > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.