ACTIVEMQ主题、队列设置用户名密码


修改文件%ACTIVEMQ_BASE%/conf/activemq.xml,用户名密码储存在文件%ACTIVEMQ_BASE%/conf/credentials.properties中,

ACTIVEMQ主题、队列设置用户名密码_第1张图片

activemq.xml详细如下:



xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd">




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


lazy-init="false" scope="singleton"
init-method="start" destroy-method="stop">







 

 

 

















 

 

 

















 

 

 

















 

 

 

















 

 

 

















 

 

 

















 

 

 





















enableJournalDiskSyncs="false"
indexWriteBatchSize="1000"
indexCacheSize="10000"
journalMaxFileLength="32mb"
/>





























































 

 

credentials.properties详细如下:

## ---------------------------------------------------------------------------
## Licensed to the Apache Software Foundation (ASF) under one or more
## contributor license agreements. See the NOTICE file distributed with
## this work for additional information regarding copyright ownership.
## The ASF licenses this file to You under the Apache License, Version 2.0
## (the "License"); you may not use this file except in compliance with
## the License. You may obtain a copy of the License at
## 
## http://www.apache.org/licenses/LICENSE-2.0
## 
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
## ---------------------------------------------------------------------------

# Defines credentials that will be used by components (like web console) to access the broker

activemq.username=***
activemq.password=***

per.username=***
per.password=***

mper.username=***
mper.password=***

com.username=***
com.password=***

mcom.username=***
mcom.password=***

erp.username=***
erp.password=***

recr.username=***
recr.password=***

 

 

 

 

 

以上配置今天发现队列监控出现异常,最后查到问题出现在这里:

ACTIVEMQ主题、队列设置用户名密码_第2张图片

由于队列监控项目admin里使用的账户为system/manager(webapps\admin\WEB-INF\webconsole-embedded.xml

ACTIVEMQ主题、队列设置用户名密码_第3张图片

),属于admins群组,需要加上权限。

你可能感兴趣的:(ACTIVEMQ主题、队列设置用户名密码)