camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@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)
Date Mon, 23 Feb 2009 14:57:00 GMT

     [ 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.


Mime
View raw message