camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Limit concurrency to messages with different headers
Date Thu, 08 Aug 2013 09:15:40 GMT
Sounds like JMS message groups can help with this.

If you use ActiveMQ check out its docs about this.

On Wed, Aug 7, 2013 at 9:24 PM, bocamel <> wrote:
> I need to process orders from multiple companies and then send them out.  The
> logic for processing is almost identical but I need to send all messages
> from a company out in the exact sequence as they are received.    Therefore,
> I would like to have concurrency but need to apply concurrency only when the
> messages are for different companies.  Another way to say this is that, I
> want all messages from one company to be processed singled threaded.  One
> way that I can do this is to route the messages into different SEDA queues
> based on the company names.  Then process messages from each SEDA queue
> single threaded.  But I do not want to duplicate my route definition for
> each company in my Spring xml file (to consume from each separate SEDA
> queue).  Is there an elegant way to do this (in Camel with Spring)?
> Thanks in advance!
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Red Hat, Inc.
Twitter: davsclaus
Author of Camel in Action:

View raw message