activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <>
Subject Re: Message Groups
Date Mon, 07 May 2007 22:28:42 GMT
On 5/7/07, Banana Man <> 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...

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....

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...

View raw message