Return-Path: Delivered-To: apmail-geronimo-activemq-users-archive@www.apache.org Received: (qmail 2723 invoked from network); 29 Jan 2007 12:11:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Jan 2007 12:11:39 -0000 Received: (qmail 73416 invoked by uid 500); 29 Jan 2007 12:11:45 -0000 Delivered-To: apmail-geronimo-activemq-users-archive@geronimo.apache.org Received: (qmail 73198 invoked by uid 500); 29 Jan 2007 12:11:44 -0000 Mailing-List: contact activemq-users-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-users@geronimo.apache.org Delivered-To: mailing list activemq-users@geronimo.apache.org Received: (qmail 73186 invoked by uid 99); 29 Jan 2007 12:11:44 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Jan 2007 04:11:44 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FROM_ALL_NUMS,FROM_STARTS_WITH_NUMS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [146.232.64.13] (HELO mail3.sun.ac.za) (146.232.64.13) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Jan 2007 04:11:35 -0800 Received: from dogbert.sdsl.sun.ac.za ([146.232.2.71]) by mail3.sun.ac.za with esmtp (Exim 4.34) id 1HBVLt-0003Rt-Cb for activemq-users@geronimo.apache.org; Mon, 29 Jan 2007 14:11:13 +0200 Received: by dogbert.sdsl.sun.ac.za (Postfix, from userid 500) id 4F44317F0008; Mon, 29 Jan 2007 14:11:13 +0200 (SAST) Date: Mon, 29 Jan 2007 14:11:13 +0200 From: Albert Strasheim <13640887@sun.ac.za> To: activemq-users@geronimo.apache.org Subject: Re: Fast producer, slow consumer with spooling to disk? Message-ID: <20070129121113.GB9052@dogbert.sdsl.sun.ac.za> References: <20070126164404.GA3246@dogbert.sdsl.sun.ac.za> <20070126175318.GA4338@dogbert.sdsl.sun.ac.za> <67DEE5AE-04E5-47F6-8506-FCBF88F60FC6@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <67DEE5AE-04E5-47F6-8506-FCBF88F60FC6@gmail.com> User-Agent: Mutt/1.4.2.2i X-Virus-Checked: Checked by ClamAV on apache.org Hey Rob Thanks very much for this. I'd like to try this in our unit tests, which is the first place we've been running into these problems (testing a slow consumer with "fake" data, which is produced very fast). Is there a way to configure policies using the broker URL or in the queue/topic name (after the ?) from code? For our unit tests, we're currently using an embedded broker, so this would makes things relatively simple. Alternatively, is there a way to make an embedded broker parse XML configuration somehow? Thanks again. Cheers, Albert On Mon, 29 Jan 2007, Rob Davies wrote: > Hi Albert, > > from the latest in SVN it's possible to configure the cursor used for > a topic subscriber - which by default is file based. If you use a VM > based cursor, as messages aren't removed from memory (to spool to > disk) - the producer should block. You can configure the cursor type > using destination policies: http://incubator.apache.org/activemq/ > xbean-xml-reference-41.html#XBeanXMLReference4.1-policyEntryelement > > > An example is: