camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Jms endpoint: process messages in parallel, but keeping predefined order
Date Tue, 14 Jun 2011 09:10:42 GMT

Read about message groups

On Tue, Jun 14, 2011 at 9:46 AM, Alexey Vinogradov
<> wrote:
> I need to solve the following problem:
> There is JMS queue where the messages are consumed from. Each message has
> business Id and version. The task is to process messages in parallel, but
> messages with the same ID should be processed in the order defined by
> version. The processing should be reliable.  It means that if any error
> happens while message is being processed the JMS message should not be
> acknowledged, to be read again when the error cause is eliminated. No
> messages can be lost due to any error.
> Example:
> channel contains messages: id[1]ver[1], id[2]ver[1], id[3]ver[1],
> id[1]ver[2]. First 3 messages can be processed in parallel as Ids are
> different, but the 4-th message cannot be processed before the processing of
> the 1-st version completes successfully.
> There is a custom solution based on bare JMS API. I wonder if there is any
> out-of-the box way to solve this task using Camel?
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Twitter: davsclaus, fusenews
Author of Camel in Action:

View raw message