activemq-users mailing list archives

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

Mime
View raw message