activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Fernandez <>
Subject Re: message routing
Date Wed, 16 Jul 2008 21:16:31 GMT

IMO, the best option for implementing that sort of routing pattern is Camel. 

Your other option is to rely on message selectors. Your producer can assign
the value of field Y to a message property; the property is then referenced
w/in a message selector. You can have the consumer specify the selector or
you can set up a filteredDestination within the broker's XML cfg file. 


elihusmails wrote:
> I am passing instances of a class from a single producer to a group of
> consumers.  The class contains an integer id field that defines the
> consumer.  I am searching for advice on how to properly route data through
> ActiveMQ.
> So if I have Class X that has a field Y, how can I route messages in a
> Topic
> to different consumers based on the value of Y?
> The closest thing I found was a Camel Message Router (
>, but I am not sure
> if
> it can look inside an object to determine where to route data to.
> Thanks
> Mark

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message