activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From greenapple <ztuff...@gmail.com>
Subject Add Plugins without restarting Activemq?
Date Mon, 28 Apr 2008 15:55:05 GMT

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.


Mime
View raw message