I made the change in the activemq-security.xml inside conf/.

        <simpleAuthenticationPlugin>
            <users>
                        <authenticationUser username="admin" password="admin"
                    groups="admins"/>
            </users>
        </simpleAuthenticationPlugin>

I removed other users and enabled only group admin. When I consume or
publish the message, it accepts any username and password I provide.
In JAVA I used this:
ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory(
                                "admin", "xyz", messageBrokerUrl);

As you can see username password combination do not match. Still works for
me.




--
View this message in context: 
http://activemq.2283324.n4.nabble.com/ActiveMQ-5-4-3-Set-usernames-and-passwords-tp4695684p4695732.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to