activemq设置登录用户名和密码

在activemq服务的根目录下/conf/activemq.xml中有这样一个bean值:




file:${activemq.base}/conf/credentials.properties

 

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

  1.    <plugins>   
  2.         <simpleAuthenticationPlugin>   
  3.             <users>   
  4.                 <authenticationUser username="${activemq.username}" password="${activemq.password}" groups="users,admins"/>   
  5.             users>   
  6.         simpleAuthenticationPlugin>   
  7.     plugins>   

转载于:https://www.cnblogs.com/lxzh/archive/2012/05/21/2511762.html

你可能感兴趣的:(activemq设置登录用户名和密码)