Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 82675 invoked from network); 25 Nov 2009 08:25:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Nov 2009 08:25:55 -0000 Received: (qmail 62324 invoked by uid 500); 25 Nov 2009 08:25:54 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 62250 invoked by uid 500); 25 Nov 2009 08:25:54 -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 62240 invoked by uid 99); 25 Nov 2009 08:25:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Nov 2009 08:25:54 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Nov 2009 08:25:45 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1NDDBk-0000EJ-67 for users@activemq.apache.org; Wed, 25 Nov 2009 00:25:24 -0800 Message-ID: <26508992.post@talk.nabble.com> Date: Wed, 25 Nov 2009 00:25:24 -0800 (PST) From: moreno9000 To: users@activemq.apache.org Subject: Re: How to "activate" an interceptor In-Reply-To: <7b3355cb0911240842h557811famc1ed985823812033@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: moreno.mauri@italtel.it References: <26478807.post@talk.nabble.com> <7b3355cb0911230652oacab180n89876bc2832d205e@mail.gmail.com> <26479592.post@talk.nabble.com> <7b3355cb0911230722l305b0234xccc07699379d9594@mail.gmail.com> <26480505.post@talk.nabble.com> <7b3355cb0911230907n61da057fx7921f95792ef7d98@mail.gmail.com> <26493420.post@talk.nabble.com> <7b3355cb0911240842h557811famc1ed985823812033@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Yes, it's like producer flow control. In 5.3 I tried to use prod.f.c. but client side I received an exception only using an async listener (what I need is a sync notification when queue is full). Your last sentence ("You'll need to do much more than just a BrokerFilter to achieve this behavior") sounds worrying :-( bsnyder wrote: > > On Tue, Nov 24, 2009 at 3:16 AM, moreno9000 > wrote: >> > >> Client side: I'd like to raise an exception to producer in order >> to say it "Please, stop sending messages till messages are read >> by a consumer". > > This sounds similar to the way that producer flow control works: > > http://activemq.apache.org/producer-flow-control.html > > The difference is in the predicate you're using. Instead of keying on > the amount of memory available, you're keying on the number of > messages currently in the destination. You'll need to do much more > than just a BrokerFilter to achieve this behavior. > > Bruce > -- > -- View this message in context: http://old.nabble.com/How-to-%22activate%22-an-interceptor-tp26478807p26508992.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.