On 5/7/07, Banana Man <[EMAIL PROTECTED]> wrote:
Hi All, Is it possible to configure the broker to dynamically attach a message group to an incoming message based on the content of that message (e.g. an xpath or selector)?
Interesting idea :) You could use a Broker Interceptor to do such a thing... http://activemq.apache.org/interceptors.html though that is a bit of a performance overhead; the broker often doesn't have to de-marshal the message payload; forcing the de-marshal will definitely slow the broker down & burn more CPU. A better approach would be to add this as a transformer on the producer.... http://activemq.apache.org/message-transformation.html Or yet another option is to use Camel to consume from one queue, transforming the message to add the message group, then publish to another destination... http://activemq.apache.org/camel/enterprise-integration-patterns.html -- James ------- http://macstrac.blogspot.com/