您的位置:首页 > 其它

activemq设置登录用户名和密码

2012-05-21 16:07 399 查看
在activemq服务的根目录下/conf/activemq.xml中有这样一个bean值:

<!-- Allows us to use system properties as variables in this configuration file -->
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<value>file:${activemq.base}/conf/credentials.properties</value>
</property>
</bean>

这个文件/conf/credentials.properties就是密码所在的位置,但是默认情况下是没有使用的,需要增加插件

<plugins>

<simpleAuthenticationPlugin>

<users>

<authenticationUser username="${activemq.username}" password="${activemq.password}" groups="users,admins"/>

</users>

</simpleAuthenticationPlugin>

</plugins>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: