activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stoyac <>
Subject The same password for ActiveMQ and WebConsole
Date Mon, 15 Jun 2009 13:17:22 GMT

The ActiveMQ password is configured in activemq.xml, while the WebConsole
password is configured in jetty, mostly in web xml. Both engines - ActiveMQ
and Jetty - follow different configuration files and rules. Eg. there are
roles in Jetty which are not present in ActiveMQ, having groups instead
(whatever the difference is). With some tricks and if you decide to get rid
of role checking you may have the same users and passwords for both ActiveMQ
and the built-in WebConsole.

1. Define the system property pointing to
the exact location of the JAAS configuration file, eg. in bin\activemq.bat
if "%ACTIVEMQ_OPTS%" == "" set ACTIVEMQ_OPTS=-Xmx512M
(all in one line)
or in UNIX' bin/activemq
if [ -z "$ACTIVEMQ_OPTS" ] ; then
  ACTIVEMQ_OPTS="-Xmx512M -Dorg.apache.activemq.UseDedicatedTaskRunner=true

2. conf/login.config
login {
 org.apache.activemq.jaas.PropertiesLoginModule required

3. conf/passwd

"secret" is the password of the user myuser, as clear text.

4. conf/group

(no special idea, what is the file for, feel free to correct it)

5. conf/activemq.xml

<beans ...>
  <broker ...>
      <jaasAuthenticationPlugin configuration="login" />
  <jetty xmlns="">
    <!-- TCP port on which the WebConsole listenes -->
      <nioConnector port="8161"/>
    <!-- Where the whole jetty stuff (WebPages etc.) is located -->
      <webAppContext contextPath="/admin"
      <jaasUserRealm name="adminRealm"
                     loginModuleName="login" />

Both strings "login" in jaasAuthenticationPlugin and jaasUserRealm point to
the section called "login" (our only section) in conf/login.config.

6. webapps/admin/WEB-INF/web.xml

<web-app ...>

Please use * for role name, because the JAAS module
doesn't use any specific roles.

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message