Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2B09A1042D for ; Mon, 16 Feb 2015 16:02:35 +0000 (UTC) Received: (qmail 25266 invoked by uid 500); 16 Feb 2015 16:02:25 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 25219 invoked by uid 500); 16 Feb 2015 16:02:25 -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 25207 invoked by uid 99); 16 Feb 2015 16:02:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Feb 2015 16:02:24 +0000 X-ASF-Spam-Status: No, hits=4.4 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URIBL_BLACK,URI_HEX,URI_TRY_3LD X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gary.tully@gmail.com designates 209.85.215.50 as permitted sender) Received: from [209.85.215.50] (HELO mail-la0-f50.google.com) (209.85.215.50) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Feb 2015 16:02:20 +0000 Received: by lams18 with SMTP id s18so30099775lam.13 for ; Mon, 16 Feb 2015 08:01:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=sPXVtgs5PhbasjOyi0VqyKvFugeNViF4gAWV3Q0R0p4=; b=El4/r9Y7zCgzqdD9eHxaBfaH97lVA9mEUjzPdrGomg3PlKMMsx/QeupPlRdlmQYjPi kkDL8/gBPHV901dkF9/d5HyhAIbnAGqILopwZjRL3682zMiL90A2SZU94QH6GN8MR7P3 XpPqWgzRKKDmzs9+KetY7F/SSSs5xuAUf3wZcBj0RVl82nBezM5dV4KD6Edt3hc5CkOo K9XiNsE8Q/tWeXa3deVn9u+fMC8eW1eVQt0RBSnUoprCrU6l9B5Ye3iO4fasQNglKk4o sQk9OTTybnsmkrFB4RDy5gQ7Te5jtbTATG6pfoBdt/nROB0pt0dAmIN9JxNwIqHRewRZ IkBA== MIME-Version: 1.0 X-Received: by 10.152.10.98 with SMTP id h2mr16693858lab.18.1424102474646; Mon, 16 Feb 2015 08:01:14 -0800 (PST) Received: by 10.25.82.136 with HTTP; Mon, 16 Feb 2015 08:01:14 -0800 (PST) In-Reply-To: <1423772771911-4691474.post@n4.nabble.com> References: <1423772771911-4691474.post@n4.nabble.com> Date: Mon, 16 Feb 2015 16:01:14 +0000 Message-ID: Subject: Re: Virtual Destination selector with unwanted messages From: Gary Tully To: "users@activemq.apache.org" Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org peek at http://activemq.apache.org/maven/apidocs/org/apache/activemq/plugin/SubQueueSelectorCacheBroker.html the idea is that a plugin will retain the info about consumers selectors so even if they disconnect for a while, the virtual topic will retain or dispatch messages for it. This allows you to keep the selectorAware option. On 12 February 2015 at 20:26, Llama007 wrote: > Hello > We have a situation we are using a Virtual Destination with a message > selector. The virtual destination is NOT selectorAware because we want to > get messages when there are no consumers on the queue. This has the effect > of forwarding every message sent to the Virtual Topic to the destination > queue regardless of if it matches the message selector or not. This means > messages that will never be subscribed by the message selector will > eventually fill up the queue. > Is there any way to clean up those 'unselected' messages short of creating > another consumer with a message selector that negates the original message > selector? > > We are using ActiveMQ 5.10 > > Thanks > Tim > > > > -- > View this message in context: http://activemq.2283324.n4.nabble.com/Virtual-Destination-selector-with-unwanted-messages-tp4691474.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com.