Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 9682 invoked from network); 4 Oct 2010 07:43:24 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Oct 2010 07:43:24 -0000 Received: (qmail 34740 invoked by uid 500); 4 Oct 2010 07:43:24 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 34551 invoked by uid 500); 4 Oct 2010 07:43:21 -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 34539 invoked by uid 99); 4 Oct 2010 07:43:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Oct 2010 07:43:20 +0000 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=SPF_HELO_PASS,SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Oct 2010 07:43:14 +0000 Received: from joe.nabble.com ([192.168.236.151]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1P2fhD-0007s8-EV for users@activemq.apache.org; Mon, 04 Oct 2010 00:42:51 -0700 Date: Mon, 4 Oct 2010 00:42:51 -0700 (PDT) From: Tobias Trelle To: users@activemq.apache.org Message-ID: <1286178171444-2953920.post@n4.nabble.com> In-Reply-To: <1286174907404-2953864.post@n4.nabble.com> References: <1286174907404-2953864.post@n4.nabble.com> Subject: Re: Fetching a message from 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 What exactly do you mean by a "value"? From an API point of view there are only messages in a queue. But you don't need to browser the whole queue to detect the messages of interest. You can you a JMS selector expression: http://download.oracle.com/javaee/1.3/api/javax/jms/Message.html HTH, Tobias -- View this message in context: http://activemq.2283324.n4.nabble.com/Fetching-a-message-from-a-queue-tp2953864p2953920.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.