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 12541EADD for ; Wed, 9 Jan 2013 00:36:59 +0000 (UTC) Received: (qmail 61153 invoked by uid 500); 9 Jan 2013 00:36:58 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 61116 invoked by uid 500); 9 Jan 2013 00:36:58 -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 61108 invoked by uid 99); 9 Jan 2013 00:36:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jan 2013 00:36:58 +0000 X-ASF-Spam-Status: No, hits=0.9 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tabish121@gmail.com designates 209.85.216.54 as permitted sender) Received: from [209.85.216.54] (HELO mail-qa0-f54.google.com) (209.85.216.54) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jan 2013 00:36:53 +0000 Received: by mail-qa0-f54.google.com with SMTP id j15so255599qaq.13 for ; Tue, 08 Jan 2013 16:36:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:subject:from:to:date:in-reply-to:references :content-type:x-mailer:content-transfer-encoding:mime-version; bh=XLRmPTEKdabqweRbiQb4W5bGsIw+6lMbRZdFwqjvoZU=; b=gslOyIJa2CqdCOgh0mwqJUcR5v4TJ+Rm1SLbF+9u8UoRCf+/wVoVyGwcw22ZU9EMFj RRMnElpJZEAeORe/0JE5bmmds87m6R+CqYjKSzJMJPy08cblaxTyg8c4UVJkg4klfPZA tpfJ+B3KNeAmOsdnHSeFzy8KYjevnnqNlpWlAosRJbD8nExcrN/4LTzyxch7FmygQuGN hwXZxshoQdL5XK8MQ/kLwlswKhCWdjnyNcnCyjQU81JWEgK4+tyStvi7OQ3ZYdWQ24hk nay62l9vCJSYPywZxT7j81y0x1zS4JVn/4HGlJ3tIKvpIqCzXW1Hfs7TgMu+m43hIzBe cREg== X-Received: by 10.229.173.162 with SMTP id p34mr11391064qcz.138.1357691792336; Tue, 08 Jan 2013 16:36:32 -0800 (PST) Received: from [192.168.2.150] (c-98-231-181-148.hsd1.va.comcast.net. [98.231.181.148]) by mx.google.com with ESMTPS id u18sm22614537qal.0.2013.01.08.16.36.31 (version=SSLv3 cipher=OTHER); Tue, 08 Jan 2013 16:36:31 -0800 (PST) Message-ID: <1357691790.2732.2.camel@OfficePC> Subject: Re: Query related to CMS API createQueue From: Timothy Bish To: users@activemq.apache.org Date: Tue, 08 Jan 2013 19:36:30 -0500 In-Reply-To: <1357691368393-4661517.post@n4.nabble.com> References: <1357691368393-4661517.post@n4.nabble.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org On Tue, 2013-01-08 at 16:29 -0800, Gangadhar Rao wrote: > Is there any way we can have the createQueue CMS API to throw an error if the > particular queue > is not present on the broker rather than creating a new one. > > Nope, the createQueue / createTopic methods don't interact with the broker. You can look into the security model of AMQ as that's how you would restrict users from dynamically creating destinations, see: http://activemq.apache.org/how-do-i-create-new-destinations.html and http://activemq.apache.org/security.html This would cause an error to be thrown upon consumer or producer creation if no destination exists and the user is not permitted to create it. > > -- > View this message in context: http://activemq.2283324.n4.nabble.com/Query-related-to-CMS-API-createQueue-tp4661517.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. -- Tim Bish Sr Software Engineer | RedHat Inc. tim.bish@redhat.com | www.fusesource.com | www.redhat.com skype: tabish121 | twitter: @tabish121 blog: http://timbish.blogspot.com/