camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bocamel <>
Subject RE: Limit concurrency to messages with different headers
Date Tue, 13 Aug 2013 13:52:02 GMT


Thanks!  This is a perfect solution to my requirements!


From: Claus Ibsen-2 [via Camel]
Sent: Thursday, August 8, 2013 5:17 AM
To: bocamel
Subject: Re: Limit concurrency to messages with different headers


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 <[hidden email]> wrote: 

> I need to process orders from multiple companies and then send them out.
> 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.
> I would like to have concurrency but need to apply concurrency only when
> 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. 
Email: [hidden email] 
Twitter: davsclaus 
Author of Camel in Action:


If you reply to this email, your message will be added to the discussion

To unsubscribe from Limit concurrency to messages with different headers,
click here
> .
ils%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> NAML 

View this message in context:
Sent from the Camel - Users mailing list archive at
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message