activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From magellings <>
Subject Dynamically setting activemq username password when logging into web console
Date Thu, 29 Oct 2009 18:49:58 GMT


I'm using ActiveMQ 5.2 and am wondering if there is a way to set the
userName and password properties in webconsole-embedded.xml based on
credentials entered with a basic authentication setup for the web console?  

  <bean id="connectionFactory"
    <property name="brokerURL" value="vm://localhost"/>
    <property name="userName" value="${activemq.username}"/>
    <property name="password" value="${activemq.password}"/>    

These are the credentials the web console uses to connect to the broker.  I
want to be able to configure privs based on what credentials the user uses
to log into the web console.  I currently configure privs with the
simpleAuthentication/authorization plugin configured in activemq.xml.  I'd
like to add another user with read-only privs in which they can log in with
that user to the web console and restricts them from deleting
queues/messages etc.

          <authenticationUser username="GL$ACTIVEMQ_QUADNMS"
password="destination" groups="producers,consumers,admins" />
              <authorizationEntry queue=">" write="producers"
read="consumers" admin="admins,producers" />
              <authorizationEntry topic=">" read="admins"
write="admins,producers" admin="admins,producers,consumers" />

Here's a seperate thread explaining how to configure the web console to use
basic authentication.
View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message