How to quickly configure authorization settings in ActiveMQ?


Configuration file: ACTIVEMQ_HOME/conf/activemq.xml

Here’s a sample snippet to show you how authentication / authorization can be handled in ActiveMQ.

. . .
 <plugins>
 <simpleAuthenticationPlugin>
 <users>
 <authenticationUser username="sa" password="manager" groups="producers,consumers,admins" />
 <authenticationUser username="frontend" password="manager" groups="producers,consumers" />
 <authenticationUser username="backend" password="manager" groups="consumers" />
 </users>
 </simpleAuthenticationPlugin>
 <authorizationPlugin>
 <map>
 <authorizationMap>
 <authorizationEntries>
 <authorizationEntry queue=">" write="producers" read="consumers" admin="admins" />
 </authorizationEntries>
 </authorizationMap>
 </map>
 </authorizationPlugin>
 </plugins>
. . .

For advanced users – ActiveMQ provides pluggable security through various different providers. Have a look at http://activemq.apache.org/security.html

Advertisements

2 comments

  1. I can not see anything in this blog.

    1. Thanks Ravi for taking time to notify me about this. Have made the content available now.

      -Sing.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: