Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 32287 invoked from network); 28 Apr 2008 15:55:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Apr 2008 15:55:36 -0000 Received: (qmail 139 invoked by uid 500); 28 Apr 2008 15:55:36 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 113 invoked by uid 500); 28 Apr 2008 15:55:36 -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 101 invoked by uid 99); 28 Apr 2008 15:55:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Apr 2008 08:55:36 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Apr 2008 15:54:51 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1JqVh3-0001uJ-66 for users@activemq.apache.org; Mon, 28 Apr 2008 08:55:05 -0700 Message-ID: <16941994.post@talk.nabble.com> Date: Mon, 28 Apr 2008 08:55:05 -0700 (PDT) From: greenapple To: users@activemq.apache.org Subject: Add Plugins without restarting Activemq? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: ztuffaha@gmail.com X-Virus-Checked: Checked by ClamAV on apache.org I have been trying to figure out a way to add users and permissions to a running broker without having to restart. I thought I would be able to install plugins without restarting the broker. Note that ActiveMQDestinationImpl is an a simple implementation of the ActiveMQDestination. I am getting the following error on the console: ERROR TransportConnector - Could not accept connection : Broken pipe Any help is greatly appreciated. Was anybody successful is doing so? I do not want to LDAP. My code looks like the following: QueueConnection conn = cFactory.createQueueConnection("system", "manager"); System.out.println("connection established"); List authrizations = new ArrayList(); AuthorizationEntry entry = new AuthorizationEntry(); entry.setAdmin("admins"); entry.setRead("consumers"); entry.setWrite("new-producers"); entry.setDestination(new ActiveMQDestinationImpl("someQueue.MyQueue")); authrizations.add(entry); AuthorizationMap authorMap = new DefaultAuthorizationMap(authrizations); AuthorizationPlugin authorizationPlugin = new AuthorizationPlugin(); authorizationPlugin.setMap(authorMap); broker.setPlugins(new BrokerPlugin[] {authorizationPlugin}); -- View this message in context: http://www.nabble.com/Add-Plugins-without-restarting-Activemq--tp16941994s2354p16941994.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.