Return-Path: Delivered-To: apmail-geronimo-activemq-users-archive@www.apache.org Received: (qmail 81460 invoked from network); 22 Aug 2006 21:45:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Aug 2006 21:45:27 -0000 Received: (qmail 83320 invoked by uid 500); 22 Aug 2006 21:45:27 -0000 Delivered-To: apmail-geronimo-activemq-users-archive@geronimo.apache.org Received: (qmail 83192 invoked by uid 500); 22 Aug 2006 21:45:26 -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 83181 invoked by uid 99); 22 Aug 2006 21:45:26 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Aug 2006 14:45:26 -0700 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 (asf.osuosl.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Aug 2006 14:45:23 -0700 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1GFe3T-0007A7-AF for activemq-users@geronimo.apache.org; Tue, 22 Aug 2006 14:45:03 -0700 Message-ID: <5934254.post@talk.nabble.com> Date: Tue, 22 Aug 2006 14:45:03 -0700 (PDT) From: nkiesel To: activemq-users@geronimo.apache.org Subject: how to get #items in a queue? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I am looking for an example how to get e.g. #items in a queue from within my Java program. I know how to look at it using e.g. jconsole, but I want to display some stats about existing queues using a JSP. So other info I will need is a list of all queues, but this I think I can figure out myself (although I would of course be very grateful for info on this as well). >From the FAQ "How do I find the size of a Queue" I clicked down to "How can I see what destinations are used". But that only talks about how to get a list of all active destinations. The link provided points to the Java API doc that does not give any methods for getting statistics (or, more likely, I'm missing something here). Best, Norbert -- View this message in context: http://www.nabble.com/how-to-get--items-in-a-queue--tf2148920.html#a5934254 Sent from the ActiveMQ - User forum at Nabble.com.