Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 11494 invoked from network); 12 Jun 2007 12:48:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Jun 2007 12:48:57 -0000 Received: (qmail 38450 invoked by uid 500); 12 Jun 2007 12:49:00 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 38427 invoked by uid 500); 12 Jun 2007 12:49:00 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 38415 invoked by uid 99); 12 Jun 2007 12:49:00 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jun 2007 05:49:00 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of james.strachan@gmail.com designates 64.233.184.224 as permitted sender) Received: from [64.233.184.224] (HELO wr-out-0506.google.com) (64.233.184.224) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jun 2007 05:48:55 -0700 Received: by wr-out-0506.google.com with SMTP id 25so1298856wry for ; Tue, 12 Jun 2007 05:48:35 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=P2GQX4Nx+Wce0r/moCmN7W6EmKXQHjwZC+kva09vsBjNZa0ZGWOom8nxUwKM3mPhbMnuee/Oy3mth23/nkZL26WE8FVIdC4uD3MlV+VQPDNgLTX2sgWj+sgCcm0XbNUMvI6RctBnlZkUTndY1NsQv0OFrAG+CtLLfacUkvlToZQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=uWxky7X30Fn7vgjQneNOuiVkG+9G/0x3YSkj7GkBAQqGWl9aAG0pTMvUNiqJPDM7WD7VcYv5AFzfBVn4fVhvQB/Ilc4YRnvEq5Ifo3+TS1/Nr8RG/YlK5z2yq4Zu/vZxHBAbP28n/pryRmhfvyCP5Bg8vPT9dgnpIPyln8dcYCQ= Received: by 10.90.98.3 with SMTP id v3mr6292178agb.1181652515205; Tue, 12 Jun 2007 05:48:35 -0700 (PDT) Received: by 10.90.67.18 with HTTP; Tue, 12 Jun 2007 05:48:30 -0700 (PDT) Message-ID: Date: Tue, 12 Jun 2007 13:48:30 +0100 From: "James Strachan" To: users@activemq.apache.org Subject: Re: How to add message filter on broker server side In-Reply-To: <11077873.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <11077873.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org 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 -- James ------- http://macstrac.blogspot.com/