On Tue, Jan 4, 2011 at 7:57 PM, preben <p...@dr.dk> wrote:
>
> Hi
>
> I need a bit of clarification regarding FIFO and messaging using activemq.
>
> According to Activemq documentation
> http://activemq.apache.org/message-groups.html message grouping should
> preserve ordering of messages within the same group id.
>
> When the producer sets the groupid it should be possible to have multiple
> consumers on the same queue parallelle processing messages from the queue,
> but the broker should make sure that messages within the same groupid goes
> to the same consumer thread thereby preserving ordering within the group.
>
> Correct ?

Yes messages in the same group is ordered and processed by the same consumer.

>
> Anybody willing to share Camel example flows that demo's message grouping
> and FIFO.
>

Check unit tests in camel-jms or activemq source :)
Or ActiveMQ in Action book may have more details as well.

See this test
https://svn.apache.org/repos/asf/camel/trunk/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsRouteUsingJMSXGroupTest.java


> Thanks
> Preben
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Activemq-jmsgroupid-tp3327579p3327579.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to