Hi In JMS you can use message groups for ordering http://activemq.apache.org/message-groups.html
On Wed, Jul 10, 2013 at 5:59 AM, salemi <sal...@avaya.com> wrote: > Hi, > I like to implement a mechanism in Camel to receive message from a JMS > queue. Once I have identified the type of message based on the content than > I can forward them to JavaSpaces. The write to JavaSpaces takes about 3ms > so I need to parallelize the writes. But there is a catch I can't > parallelize the messages without restrictions since there are buckets of > messages that need to be processed in the order they have been received. > > Let say for example, we have message types a, b and c. All the messages of > type "a" has to be processed in order and all the messages of type "b" has > to be processed in order and All the messages of type "c" has to be > processed in order. > Is there a way to consume the messages from the JMS and split them up in to > buckets for a, b and c and send the a, b,c messages in parallel to > JavaSpaces? > > <from uri="jms:queue:abc"> > <filter a> > <to start thread and save to javaspaces> > <filter b> > <to start thread and save to javaspaces> > <filter c> > <to start thread and save to javaspaces> > > > > ----- > Alireza Salemi > -- > View this message in context: > http://camel.465427.n5.nabble.com/Incoming-message-from-the-queue-need-to-be-send-to-multiple-consumer-but-keep-the-ordering-tp5735406.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen