Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 73513 invoked from network); 20 Jul 2010 15:50:40 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 Jul 2010 15:50:40 -0000 Received: (qmail 35204 invoked by uid 500); 20 Jul 2010 15:50:40 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 35163 invoked by uid 500); 20 Jul 2010 15:50:39 -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 35155 invoked by uid 99); 20 Jul 2010 15:50:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jul 2010 15:50:39 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,SPF_HELO_PASS,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL 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; Tue, 20 Jul 2010 15:50:34 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1ObF5B-00057Y-Ep for users@activemq.apache.org; Tue, 20 Jul 2010 08:50:13 -0700 Message-ID: <29215932.post@talk.nabble.com> Date: Tue, 20 Jul 2010 08:50:13 -0700 (PDT) From: Joe Fernandez To: users@activemq.apache.org Subject: Re: What's the best way to delete specific messages from the JMS? In-Reply-To: <29215922.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: joe.fernandez@ttmsolutions.com References: <29215922.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org What about skipping the browser and simply issuing a selective receiveNoWait() with the messageID that you're interested in removing from the queue? Joe http://www.ttmsolutions.com ActiveMQ reference guide at http://bit.ly/AMQRefGuide odysseyfx wrote: > > What's the best way to delete specific messages from the JMS? Initially I > was using the activemq specific feature of individual acknowledgement, > however I didn't like the idea of using something not part of the JMS > spec. I switched to using a browser, and then building a consumer with a > selector for the messageID on demand, but the performance isn't as good > because I'm actually reading the message twice (browse and then consume to > perform the delete). > > Any recommendations, suggestions, future hope for the JMS Spec? > > Thanks! > Brad > -- View this message in context: http://old.nabble.com/What%27s-the-best-way-to-delete-specific-messages-from-the-JMS--tp29215922p29215932.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.