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 D5549200BD6 for ; Sun, 4 Dec 2016 16:53:18 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id D3D65160B0E; Sun, 4 Dec 2016 15:53:18 +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 277D6160AE4 for ; Sun, 4 Dec 2016 16:53:18 +0100 (CET) Received: (qmail 80897 invoked by uid 500); 4 Dec 2016 15:53:17 -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 80881 invoked by uid 99); 4 Dec 2016 15:53:16 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Dec 2016 15:53:16 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 70084180335 for ; Sun, 4 Dec 2016 15:53:16 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.609 X-Spam-Level: *** X-Spam-Status: No, score=3.609 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URI_HEX=1.313, URI_TRY_3LD=0.065] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id uxV6k-uFOkb9 for ; Sun, 4 Dec 2016 15:53:14 +0000 (UTC) Received: from mail-ua0-f177.google.com (mail-ua0-f177.google.com [209.85.217.177]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 6EFDA5F20B for ; Sun, 4 Dec 2016 15:53:13 +0000 (UTC) Received: by mail-ua0-f177.google.com with SMTP id 51so326903689uai.1 for ; Sun, 04 Dec 2016 07:53:13 -0800 (PST) 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; bh=2egavNYz0Lp0M4WVC+ml97tlb4WfFDjxIIWKkgmOTJ4=; b=VBhmWo+TSM5np44Ceqzv9lqvWfEqBTvU4DBqTPCX2mrQEbKywOVj2wppFesEXcGNeK GbAyptSg0q01lgjn9eG6RQRKE7fAzcZk+2qLvE3X/6DUvEcgoO8hdZXmwyQyV0npXMQy Rhs70OJ5EiKHdCu+/+1g8x2IzVuszc/JlYvHYPSPfVvtJmnXo8BIZmtOeVhB0bc2KbBY VuE+YNuIeXa2xz7D6wAA8V06bDuouXJ1lId9R6bPWdeiF2EgGzLxh01hi++9+Q2gPIUI qBlO8hCMo9t/6YLBQn8J4c36eelSgeLKMr3YbJuB6gbN44iG16Yo7jxUX9zDQj6YYe33 JMTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to; bh=2egavNYz0Lp0M4WVC+ml97tlb4WfFDjxIIWKkgmOTJ4=; b=Q7As30LyfkbkTNrnZ1JqyswbcpMJcLkQIt0mrcE0rBS/IZLWUfUGmryAe9WNRMwyDD 5RGLIXZ+GN5bkcsqoyVzoaRFoyjCxRnTcxI+qii1qGwIXoiUZuKTjf2GyHTCU6eWQAo5 Sg2LrCEYeb942vRco3+1/l7U6PbqKiw553wMhZAYwVi8IGDFU1T1ifWxP+Rafb3nxsrv Aup8GjPXhWrq/1xUfSBnVpEX2UPxyt7owmAtYonIycLJgH5wGLE+0Y7g/pJSjTS3LUGz ID0Sxnnquj65rFQmp+O9SAt/oiKnA/q/YAPwqBRFpv3RllpcgFqH14Y4GdD1+Of0FzX5 /nyA== X-Gm-Message-State: AKaTC03taodDDQEbjyGidkqnJSU59M8ebUZh7e2XB5jAPpQmOh+ebSHCJVVRM7RQgv7of3WeofPwdHtHq7+0iw== X-Received: by 10.176.81.18 with SMTP id e18mr32827656uaa.5.1480866790961; Sun, 04 Dec 2016 07:53:10 -0800 (PST) MIME-Version: 1.0 Sender: tbain98@gmail.com Received: by 10.103.26.133 with HTTP; Sun, 4 Dec 2016 07:53:10 -0800 (PST) Received: by 10.103.26.133 with HTTP; Sun, 4 Dec 2016 07:53:10 -0800 (PST) In-Reply-To: <1479357770273-4719273.post@n4.nabble.com> References: <1479357770273-4719273.post@n4.nabble.com> From: Tim Bain Date: Sun, 4 Dec 2016 08:53:10 -0700 X-Google-Sender-Auth: f5JdkaUNZnnZgKNHYHXmH1jy0mY Message-ID: Subject: Re: How to restrict queue deletion or purging in ActiveMQ 5.11.0? To: ActiveMQ Users Content-Type: multipart/alternative; boundary=94eb2c1918bc08f7c00542d72b76 archived-at: Sun, 04 Dec 2016 15:53:19 -0000 --94eb2c1918bc08f7c00542d72b76 Content-Type: text/plain; charset=UTF-8 If you submit an enhancement request in JIRA, this operation could be controlled by the admin role in a future version. On Nov 16, 2016 9:54 PM, "Moron" wrote: > I am wondering how could we restrict users from deleting a queue in > Activemq. > I am using simpleAuthenticationPlugin and authorizationPlugin for > configuring user and access management. > > PFA my activemq.xml > file. > > I am looking for a configuration which stops users to delete and purge any > queue. Sample code which I am using to delete a queue: > > public static void deleteDestinationQueue(String username, String password, > String destName) throws JMSException{ > ConnectionFactory connectionFactory = new > ActiveMQConnectionFactory(ActiveMQConnection.DEFAULT_BROKER_URL); > ActiveMQConnection connection = null; > try { > connection = (ActiveMQConnection) > connectionFactory.createConnection(username,password); > ActiveMQDestination destination = > ActiveMQDestination.createDestination(destName, > ActiveMQDestination.QUEUE_TYPE); > connection.destroyDestination(destination); > } catch (JMSException e) { > e.printStackTrace(); > } finally{ > connection.close(); > } > } > > I am calling this function as: > > deleteDestinationQueue("user1","pwd1", "QUEUEB"); > > > > -- > View this message in context: http://activemq.2283324.n4. > nabble.com/How-to-restrict-queue-deletion-or-purging-in- > ActiveMQ-5-11-0-tp4719273.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > --94eb2c1918bc08f7c00542d72b76--