activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eugene Prokopiev <>
Subject Authentication between brokers in one network
Date Wed, 09 Aug 2006 11:30:49 GMT

I need to use network of brokers each of them is requires 
authentication. Configuration of first broker looks like:

<beans xmlns="">

     <broker name="m0" persistent="false">

             <transportConnector uri="tcp://localhost:0" 

             <networkConnector uri="multicast://default"/>


             <jaasAuthenticationPlugin configuration="activemq-domain" 
                             <authorizationEntry topic=">" read="admins" 
write="admins" admin="admins" />
                             <authorizationEntry topic="monitoring.>" 
read="consumers" write="producers" admin="producers,consumers,admins" /> 

                             <authorizationEntry queue="monitoring.>" 
read="consumers" write="producers" admin="producers,consumers,admins" />
topic="ActiveMQ.Advisory.>" read="producers,consumers" 
write="producers,consumers" admin="producers,consumers"/>



Second broker configuration is the same but broker name is m1. I can 
start broker m0 without any errors. After second broker start I got:

INFO  BrokerService                  - ActiveMQ null JMS Message Broker 
(localhost) is starting
INFO  BrokerService                  - For help or more information 
please see:
INFO  ManagementContext              - JMX consoles can connect to 
INFO  TransportServerThreadSupport   - Listening for connections at: 
WARN  MulticastDiscoveryAgent        - brokerName not set
INFO  TransportConnector             - Connector tcp://localhost:0 Started
INFO  NetworkConnector               - Network Connector bridge Started
INFO  BrokerService                  - ActiveMQ JMS Message Broker 
(localhost, started
setting based dir=/home/john/AMQ/conf
WARN  Service                        - Failed to remove connection 
ConnectionInfo {commandId = 1, responseRequired = false, connectionId =, clientId = 
NC_localhost_outboundlocalhost, userName = null, password = null, 
brokerPath = null, brokerMasterConnector = false, manageable = false}
java.lang.SecurityException: User is not authenticated.

So, how can I connect brokers to each other? Can I modify 
networkConnector uri or setup username and password in another way?

Eugene Prokopiev

View raw message