Can you use content based router to two endpoints: seda with one thread vs seda with multiple threads? and then use resequencer to put the messages back in order?
On Wed, Aug 7, 2013 at 12:24 PM, bocamel <johnz...@gmail.com> 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: > http://camel.465427.n5.nabble.com/Limit-concurrency-to-messages-with-different-headers-tp5736945.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- *Christian Posta* http://www.christianposta.com/blog twitter: @christianposta