You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "DEBANJAN CHANDA (JIRA)" <ji...@apache.org> on 2017/02/09 04:54:41 UTC
[jira] [Reopened] (AMQ-6583) Restrict users from deleting a queue
in Activemq
[ https://issues.apache.org/jira/browse/AMQ-6583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
DEBANJAN CHANDA reopened AMQ-6583:
----------------------------------
As suggested by Tim Bain here: http://activemq.2283324.n4.nabble.com/How-to-restrict-queue-deletion-or-purging-in-ActiveMQ-5-11-0-td4719273.html
I would like to submit this as an enhancement request.
> Restrict users from deleting a queue in Activemq
> ------------------------------------------------
>
> Key: AMQ-6583
> URL: https://issues.apache.org/jira/browse/AMQ-6583
> Project: ActiveMQ
> Issue Type: Improvement
> Affects Versions: 5.11.4
> Reporter: DEBANJAN CHANDA
> Labels: security
>
> I am using simpleAuthenticationPlugin and authorizationPlugin for
> configuring user and access management.
> PFA my activemq.xml
> <http://activemq.2283324.n4.nabble.com/file/n4719273/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");
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)