Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 5909 invoked from network); 16 Sep 2010 14:57:39 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Sep 2010 14:57:39 -0000 Received: (qmail 31686 invoked by uid 500); 16 Sep 2010 14:57:38 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 31461 invoked by uid 500); 16 Sep 2010 14:57:35 -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 30485 invoked by uid 99); 16 Sep 2010 14:57:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Sep 2010 14:57:34 +0000 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=FREEMAIL_FROM,SPF_HELO_PASS,SPF_NEUTRAL,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 216.139.236.158 is neither permitted nor denied by domain of el.lopan@gmail.com) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Sep 2010 14:57:28 +0000 Received: from joe.nabble.com ([192.168.236.151]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1OwFtb-00077u-Dq for users@activemq.apache.org; Thu, 16 Sep 2010 07:57:07 -0700 Date: Thu, 16 Sep 2010 07:57:07 -0700 (PDT) From: lopan To: users@activemq.apache.org Message-ID: <1284649027423-2542361.post@n4.nabble.com> Subject: Retrieve number of pending messages in the 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 Hi, I am using activemq-cpp, I need a way to peek the next message in an specific queue (without removing the message) and get the number of pending messages in this queue. Surprinsingly, the documentation has no information about this. Is there any way I can accomplish this? Thanks. -- View this message in context: http://activemq.2283324.n4.nabble.com/Retrieve-number-of-pending-messages-in-the-queue-tp2542361p2542361.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.