Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 56166 invoked from network); 11 Aug 2009 19:46:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Aug 2009 19:46:40 -0000 Received: (qmail 62937 invoked by uid 500); 11 Aug 2009 19:46:46 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 62898 invoked by uid 500); 11 Aug 2009 19:46:46 -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 62888 invoked by uid 99); 11 Aug 2009 19:46:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Aug 2009 19:46:46 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [81.169.137.254] (HELO h57067.serverkompetenz.net) (81.169.137.254) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Aug 2009 19:46:35 +0000 Received: from h57067.serverkompetenz.net (unknown [127.0.0.1]) by h57067.serverkompetenz.net (Postfix) with ESMTP id 657C98024E for ; Tue, 11 Aug 2009 19:46:14 +0000 (UTC) Received: from [10.254.146.145] (unknown [217.40.34.174]) by h57067.serverkompetenz.net (Postfix) with ESMTP for ; Tue, 11 Aug 2009 19:46:14 +0000 (UTC) Message-Id: <7429E662-6568-4EB3-B6D7-AC8193E3B282@soa-knowledge.net> From: Andreas Gies To: users@activemq.apache.org In-Reply-To: <24923382.post@talk.nabble.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: Programmatically purge() a queue Date: Tue, 11 Aug 2009 20:46:13 +0100 References: <24923382.post@talk.nabble.com> X-Mailer: Apple Mail (2.936) X-Virus-Checked: Checked by ClamAV on apache.org hmmm, why not start the broker with the option "deleteAllMessagesOnStartup=true" for the test ? Best regards Andreas On Aug 11, 2009, at 7:40 PM, centis wrote: > > I am trying to find an example of purging a Queue from Java. Can > someone > point me to someting besides, "Using JMX..." :) I just need a way > to clear > out the existing queues before my regression tests run. > > Thanks! > CB > > -- > View this message in context: http://www.nabble.com/Programmatically-purge%28%29-a-queue-tp24923382p24923382.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. >