You can use message selectors if you can distinguish your messages based on JMS headers [1]. Otherwise you can use a topic instead of a queue and persistent consumers. Than each JMS client will receive each message and you can use a filter [2] to filter out messages you are not interested in.
[1] http://camel.apache.org/jms.html [2] http://camel.apache.org/message-filter.html Best, Christian On Wed, May 30, 2012 at 9:20 PM, Deepthi <deepthi...@gmail.com> wrote: > For example, I have a queue named testqueue1 on server1. > I have messages msg1,msg2,msg3,msg4,msg5 on testqueue1. > > I have multiple camel instances running on different servers, say server2, > server3,server4 which will be listening to testqueue1. > I want server2 instance to pick only msg1 and msg2, server3 instance to > pick > only msg3 , server4 instance should pick msg4 and msg5. > How can I achieve this? > > Basically how can i achieve message broker? > > Thanks, > Deepthi > > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Dynamically-read-messages-from-Active-Mq-tp5713746p5713751.html > Sent from the Camel - Users mailing list archive at Nabble.com. >