ActiveMQ5.5安全配置

[b]JMS服务安全配置(生产者和消息者连接时认证)[/b]


简单授权方式

在conf/activemq.xml文件中加入以下内容即可(如配置了systemUsage,应该放到systemUsage前):

<plugins>
<!-- Configure authentication; Username, passwords and groups -->
<simpleAuthenticationPlugin>
<users>
<authenticationUser username="system" password="${activemq.password}" groups="users,admins"/>
<authenticationUser username="user" password="${guest.password}" groups="users"/>
<authenticationUser username="guest" password="${guest.password}" groups="guests"/>
</users>
</simpleAuthenticationPlugin>
</plugins>


以上占位引用可在conf/credential.properties中配置
posted @ 2013-01-13 13:51  互联互通社区  阅读(44)  评论(0)    收藏  举报