activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ali Sadik Kumlali (JIRA)" <>
Subject [jira] Created: (AMQ-982) Authentication Example should be improved
Date Mon, 16 Oct 2006 11:39:22 GMT
Authentication Example should be improved

                 Key: AMQ-982
             Project: ActiveMQ
          Issue Type: Improvement
          Components: Documentation
    Affects Versions: 4.0.1
         Environment: Windows XP Professional, JDK 1.4.2_12
            Reporter: Ali Sadik Kumlali


At page, there is no enough info for authention
example. For example, there is mention where to put

Following info should be mixed with the current info found in the site. Provided attachment
contains all the necessary files that supports following 

- ACTIVEMQ_HOME=d:\activemq-4.0.1

- Downloading activemq-jaas-x.x.x.jar and putting under %ACTIVEMQ_HOME%\lib. For 4.0.1, we
used activemq-jaas-4.0.1.jar[1].    
- Adding jaas authentication plugin[2] to %ACTIVEMQ_HOME%\conf\activemq.xml
- Putting login.config into %ACTIVEMQ_HOME%\conf
- Putting and into %ACTIVEMQ_HOME%\conf\org\apache\activemq\security
- Changing Line 61 of %ACTIVEMQ_HOME%\example\src\ to following:
    Connection connection = connectionFactory.createConnection("user", "password");
  P.S: Providing an overloading method would be better: createConnection(String username,
String password)

Running Example
- Start ActiveMQ up by running %ACTIVEMQ_HOME%\bin\activemq.bat
- Start consumer by running 'ant consumer' command under %ACTIVEMQ_HOME%\example
- Start producer by running 'ant producer' command under %ACTIVEMQ_HOME%\example

[2]  activemq.xml
          <!--  use JAAS to authenticate using the login.config file on the classpath to
configure JAAS -->
          <jaasAuthenticationPlugin configuration="activemq-domain" />

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message