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. Joe www.ttmsolutions.com 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 ( > http://activemq.apache.org/camel/message-router.html), 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: http://www.nabble.com/message-routing-tp18496178p18496760.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.