Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 45811200D27 for ; Wed, 25 Oct 2017 18:27:39 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 43CD71609E5; Wed, 25 Oct 2017 16:27:39 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 880551609DD for ; Wed, 25 Oct 2017 18:27:38 +0200 (CEST) Received: (qmail 94113 invoked by uid 500); 25 Oct 2017 16:27:37 -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 94102 invoked by uid 99); 25 Oct 2017 16:27:37 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Oct 2017 16:27:37 +0000 Received: from mail-oi0-f46.google.com (mail-oi0-f46.google.com [209.85.218.46]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 2EC901A0044 for ; Wed, 25 Oct 2017 16:27:37 +0000 (UTC) Received: by mail-oi0-f46.google.com with SMTP id g125so955897oib.12 for ; Wed, 25 Oct 2017 09:27:37 -0700 (PDT) X-Gm-Message-State: AMCzsaXQkMFfQ7Mso4El3Rh/QlJhiwpSSSd8vUA0vwF93T9VUpk4FqbG yT64TxJy/xLCduVckgoUPSriV9CLtGRnqyM709HkNQ== X-Google-Smtp-Source: ABhQp+SD+d6ZKO1xMPIRt47/kDl3gpI4tGyjiEW2q0SIi8ox37GDolgq+eeoRELhk6JrkeD4Qb1HKy2j0uHdEF85ovs= X-Received: by 10.157.46.43 with SMTP id q40mr1354099otb.277.1508948856649; Wed, 25 Oct 2017 09:27:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.74.139.53 with HTTP; Wed, 25 Oct 2017 09:27:36 -0700 (PDT) In-Reply-To: <1508947188059-0.post@n4.nabble.com> References: <1508936710062-0.post@n4.nabble.com> <1508947188059-0.post@n4.nabble.com> From: Justin Bertram Date: Wed, 25 Oct 2017 11:27:36 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: delete messages from artemis broker To: users@activemq.apache.org Content-Type: multipart/alternative; boundary="001a113551a695cf2b055c618846" archived-at: Wed, 25 Oct 2017 16:27:39 -0000 --001a113551a695cf2b055c618846 Content-Type: text/plain; charset="UTF-8" You should be able to use the code I pasted previously (or some approximation thereof) to get the functionality you're looking for. Have you tried that out? Justin On Wed, Oct 25, 2017 at 10:59 AM, preben wrote: > Actually I start and stop the broker between each test, but when running a > series of tests it seems that the newly started broker picks up messages > produced in the previous test ? > I would have presumed, that it would get a clean broker. To work around > this > I need the deleteAllMessages. > > I like the EmbeddedJMSResource, and might use that instead. > > How can i get hold of all list of queues and topics via the > EmbeddedJMSResouce so I can call removeMessages ? > > And it would be nice with a deleteAllMessages, but I'm not sure I got > bandwidth to do a PR in the near future. > > /Preben > > > > > -- > Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User- > f2341805.html > --001a113551a695cf2b055c618846--