Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 83390 invoked from network); 20 Mar 2009 14:58:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Mar 2009 14:58:29 -0000 Received: (qmail 93078 invoked by uid 500); 20 Mar 2009 14:58:27 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 93063 invoked by uid 500); 20 Mar 2009 14:58:26 -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 93052 invoked by uid 99); 20 Mar 2009 14:58:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Mar 2009 07:58:26 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG 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; Fri, 20 Mar 2009 14:58:18 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LkgAW-0001yx-Vm for users@activemq.apache.org; Fri, 20 Mar 2009 07:57:56 -0700 Message-ID: <22621755.post@talk.nabble.com> Date: Fri, 20 Mar 2009 07:57:56 -0700 (PDT) From: rxg To: users@activemq.apache.org Subject: Forcing queue flush through to consumers/browsers? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: robbie_usenet@yahoo.co.uk X-Virus-Checked: Checked by ClamAV on apache.org Hi all, I am looking to replace a system of file exchange between two of our systems with a system based on JMS, the idea being the following: 1) System A writes a small number of medium- and large-sized events to a Queue over a period of time (let's say several hundred of the order of 4K per message, with a few biggies of 4M, all over 2 hours) 2) System B periodically snapshots the queue, consumes all available messages and writes OK or NOT_OK messages to a different queue for consumption by the upstream system 3) System A has a consumer thread that is blocks on receive() until there are OK or NOT_OK messages to be consumed However, while I can get a trivial example to work fine, attempts to test anything beyond a toy set-up have not been fruitful. Examples of problems that I've had: a) System B sees no messages with receiveNoWait while there have been several sitting in the queue for an hour - fixed by using prefetch=0 in the consumer b) Problems writing large messages to the same queue that I'm consuming from (in the same thread) - fixed by disabling flow control c) prefetch=0 causes QueueBrowser to hang AMQ-2171 d) QueueBrowser only shows the first 20 or so messages in the queue (with prefetch != 0), while there may be several hundred AMQ-2172 I've been checking out ActiveMQ (standalone config) for the last week or so and at this point I feel that either I'm missing something, or I'm trying to do something that it wasn't designed for - or both! Should I keep persisting - and filing bugs ;) - or have I misunderstood some core functionality? The frustrating thing is that writing messages to the queue seems to be mostly OK (apart from problem b above), since I can easily see the desired messages in the desired queues with the web console. It's just that my system B doesn't seem to see the same thing as the web console! Am I somehow missing a magic "write-through-to-clients" setting in the broker? (I have seen the doc on async write, flow control and prefetch, but maybe there are other knobs to twiddle?) Thanks for any pointers you can give, Robert -- View this message in context: http://www.nabble.com/Forcing-queue-flush-through-to-consumers-browsers--tp22621755p22621755.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.