Hi Deepthi,
> I have multiple messages on the Active MQ and I have multiple destinations.
I don't get this sentence. What do you mean by 'messages on the Active
MQ'? In message queue? What do you mean by 'multiple destinations'?
Topics? Multiple target queues? Multiple consumers?
> At the destination I need to read messages from the queue and decide if that
> message corresponds to that destination or not.
> What are the ways to implement it?
Consider using JMS selectors [1]. You can also dispatch messages on Camel level:
from("jms:queue").choice().
when(header("KEY").isNull()).to("direct:deadEnd").
otherwise().to("direct:regularProcessing").
endChoice();
> Can I use the header value to uniquely identify? Are there any examples
> which I can refer to?
Both ActiveMQ and Camel provide pretty comprehensive documentation
regarding analyzing message meta-data. I suggest you also to read
"Camel Bible" [2] written by Claus - a must-to for all serious Camel
users.
[1] http://activemq.apache.org/selectors.html
[2] http://www.manning.com/ibsen
--
Henryk Konsek
http://henryk-konsek.blogspot.com