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 A1D4111E16 for ; Fri, 18 Jul 2014 02:38:56 +0000 (UTC) Received: (qmail 18049 invoked by uid 500); 18 Jul 2014 02:38:56 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 17994 invoked by uid 500); 18 Jul 2014 02:38:56 -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 17982 invoked by uid 99); 18 Jul 2014 02:38:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Jul 2014 02:38:55 +0000 X-ASF-Spam-Status: No, hits=3.8 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_IMAGE_ONLY_28,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_REMOTE_IMAGE,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of burtonator2011@gmail.com designates 209.85.215.52 as permitted sender) Received: from [209.85.215.52] (HELO mail-la0-f52.google.com) (209.85.215.52) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Jul 2014 02:38:54 +0000 Received: by mail-la0-f52.google.com with SMTP id e16so2377573lan.39 for ; Thu, 17 Jul 2014 19:38:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=2+/OTdHGfUz2dgEqfzj5NYYNN4vNiVqUbGE88PjQCZQ=; b=Zj/myc/OK16enaENZ1NJvNRzTb/ViscJy5KB+5HtYxbc1OzX3xhAk1ktYzfdZyOP14 WouK0HpbX28oGMjF9uzvlPDth34fD9Ndt+XfrddWl4cA3Mc6QfzEujOwKFV7GuApYjb7 LgJBLwlfP7gSsNLW31tJ5njfcehT12pIYMaIqpt12M85mn1f5iMSESwfrrTkEVM6pMpb g94IPMfLpm447T6XltBaDKb5PXhT7SpsUZkfqoIKfAbovw8up8QzzAIH3KXsyGhteLX3 qEw1Pely5TempVGFANxcTNvsuX7I1Rr6350/B6SdqPD9OzXWnUwLxGWu8KTyGCpuky0B wVbg== X-Received: by 10.112.142.33 with SMTP id rt1mr1005756lbb.45.1405651109692; Thu, 17 Jul 2014 19:38:29 -0700 (PDT) MIME-Version: 1.0 Sender: burtonator2011@gmail.com Received: by 10.112.219.6 with HTTP; Thu, 17 Jul 2014 19:38:09 -0700 (PDT) In-Reply-To: <1405642701051-4683385.post@n4.nabble.com> References: <1405642701051-4683385.post@n4.nabble.com> From: Kevin Burton Date: Thu, 17 Jul 2014 19:38:09 -0700 X-Google-Sender-Auth: EqISpsf8CcYa_1dt8UDfdfzfC5c Message-ID: Subject: Re: Setting ?jms.prefetchPolicy.all=10 causes getDestinationSource().getQueues() to return with missing queues... To: users@activemq.apache.org Content-Type: multipart/alternative; boundary=001a11c36b72124acf04fe6ea7d3 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c36b72124acf04fe6ea7d3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Ah.. the problem is that it's an API design bug. getQueues() seems to imply a synchronous fetch of the queues. So really there's no way to know if you have them all.. . there's no startup countdown latch or anything to imply that you have a snapshot of all the queues. =E2=80=A6 so thats the bug essentially :) Kevin On Thu, Jul 17, 2014 at 5:18 PM, artnaseef wrote: > I don't see a bug in DestinationSource - can you be more specific what yo= u > see there? > > Since the DestinationSource is a message listener reading advisory > messages, > there definitely is a chance for race conditions. And smaller prefetch > values can significantly slow down delivery of the advisories. > > Note that the initial creation of an advisory subscription receives a > message for every destination already known to the broker. > > Please advise on what you see. > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/Setting-jms-prefetchPolicy-all-10-c= auses-getDestinationSource-getQueues-to-return-with-missing-queue-tp4683383= p4683385.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > --=20 Founder/CEO Spinn3r.com Location: *San Francisco, CA* blog: http://burtonator.wordpress.com =E2=80=A6 or check out my Google+ profile --001a11c36b72124acf04fe6ea7d3--