activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <>
Subject Re: How to add message filter on broker server side
Date Tue, 12 Jun 2007 12:48:30 GMT
On 6/12/07, Jiang <> wrote:
> I create on destination on the broker server and register several consumers
> and producers(use topic). Default , all the consumers will receive the
> messages from producers(On client side , we can add message filter to do
> some selection).

FWIW the broker implements selectors on the broker side

>  But I think that we can add some filters on the server
> side, then the broker will not dispatch so much messages to all consumer
> (for example , A sends message to B , default C will also receives the
> message , but if I add client_id = B in the message header or other places,
> broker can read this from the message , then broker will just send this
> message to B). What I think is correct ? How can I modify the source code to
> meet the request or How to use current code to realize the need. Any help is
> welcome.

Just use JMS selectors and the broker implements them on the server;
no messages are dispatched to topic consumers unless they match the
topic and selector


View raw message