Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 88667 invoked from network); 17 Mar 2010 10:00:34 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Mar 2010 10:00:34 -0000 Received: (qmail 47031 invoked by uid 500); 17 Mar 2010 10:00:34 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 46652 invoked by uid 500); 17 Mar 2010 10:00:34 -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 46639 invoked by uid 99); 17 Mar 2010 10:00:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Mar 2010 10:00:33 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=10.0 tests=AWL,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of chubrilo@gmail.com designates 209.85.220.210 as permitted sender) Received: from [209.85.220.210] (HELO mail-fx0-f210.google.com) (209.85.220.210) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Mar 2010 10:00:28 +0000 Received: by fxm2 with SMTP id 2so418921fxm.6 for ; Wed, 17 Mar 2010 03:00:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type; bh=V4QYsloE02j1Z2L3f5WTaPvytJBjgl9UC187BclSIro=; b=qRqDWoLDYKA+BiNUwYE1vmH/hqUAq/wlZ07IKIGq1pMs2+BzFXiyRvCYQRLIXxmAio aHW2AgjbRIDVtET/DjkLT9dP9ESgv6GVNf9P6Pi7yFnn2N6fJBpEDdeASUPD5PNNSGDg KMWvvKJ5HrQt8MT23XciiBYwPEds7yxHFSpZc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=lhj3l0QOo/yIFVsJ45qC+Mt4B5T03avTtzeKVsqpkjI6F3LtZpNNdKS67F2Ae5qSVt +OjDRzCH8AwPy08aZH+vbBEk8sd1lAUVWjCHijXCXkKJDF9DvMvYFPaNFTYKjHQk+3NL kKilu1dgRDYeu8X4rVmTW1ZMFjaVfZIUN8tQI= MIME-Version: 1.0 Sender: chubrilo@gmail.com Received: by 10.239.137.12 with SMTP id j12mr1142838hbj.115.1268820007217; Wed, 17 Mar 2010 03:00:07 -0700 (PDT) In-Reply-To: <4B9FBC5A.1020002@e-dialog.com> References: <4B9FBC5A.1020002@e-dialog.com> Date: Wed, 17 Mar 2010 11:00:07 +0100 X-Google-Sender-Auth: c234502ca9f3aff6 Message-ID: <36e91d9d1003170300s2beea4fcnaf59a4959ee4116e@mail.gmail.com> Subject: Re: prefetch=0 does not work with Stomp client? From: Dejan Bosanac To: users@activemq.apache.org, jcarlson@e-dialog.com Content-Type: multipart/alternative; boundary=001636457c48d06c5f0481fc2db1 --001636457c48d06c5f0481fc2db1 Content-Type: text/plain; charset=ISO-8859-1 Hi Josh, prefetch size 0 will not work with Stomp as you have to pull messages with your consumer, and that something that Stomp protocol can't do. I'd recommend using prefetch size 1 for your use case. Cheers -- Dejan Bosanac - http://twitter.com/dejanb Open Source Integration - http://fusesource.com/ ActiveMQ in Action - http://www.manning.com/snyder/ Blog - http://www.nighttale.net On Tue, Mar 16, 2010 at 6:14 PM, Josh Carlson wrote: > I am using a Stomp client with ActiveMQ 5.3.0. I have some slow consumers > and find that they wind up locking up messages in the dispatch queue even > when are other consumers available to consume the messages. I believe > prefetch is the cause of this problem. > > What I would like to do is set prefetch=0 so that messages only get > dispatched when we actually ask for them by reading on the socket > connection. However, setting prefetch=0 results in no messages being > dispatched at all. > > Is prefetch=0 suppose to work with STOMP? Are there any additional server > side settings required to make it work? > > Thanks > > -Josh > --001636457c48d06c5f0481fc2db1--