如何编辑ActiveMQ Artemis属性?新手配置修改遇阻求助
ActiveMQ Artemis 创建资源后无法修改配置的问题
我是ActiveMQ Artemis新手,创建地址、队列等资源后不知道怎么修改相关配置属性:
- Web控制台中,点击地址或队列进入属性标签页,能查看路由类型、地址、角色、持久化等信息,但所有字段只能查看,没有编辑选项。
- 在Web控制台创建了名为"TestTopic"的队列后,进入Broker文件夹执行命令:
grep -R "TestTopic" .
但未找到任何相关结果。
- 查阅Java管理API文档,发现仅包含getter方法;Jolokia API也只提供只读数据。
- 怀疑是角色权限为只读,但检查配置后确认初始用户具备管理员权限,包含"set*"访问方法:
- artemis-roles.properties文件内容:
amq = admin - broker.xml文件中security-settings配置:
<security-settings> <security-setting match="#"> <permission type="createNonDurableQueue" roles="amq"/> <permission type="deleteNonDurableQueue" roles="amq"/> <permission type="createDurableQueue" roles="amq"/> <permission type="deleteDurableQueue" roles="amq"/> <permission type="createAddress" roles="amq"/> <permission type="deleteAddress" roles="amq"/> <permission type="consume" roles="amq"/> <permission type="browse" roles="amq"/> <permission type="send" roles="amq"/> <!-- we need this otherwise ./artemis data imp wouldn't work --> <permission type="manage" roles="amq"/> </security-setting> </security-settings> - management.xml文件内容:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <management-context xmlns="http://activemq.apache.org/schema"> <authorisation> <allowlist> <entry domain="hawtio"/> </allowlist> <default-access> <access method="list*" roles="amq"/> <access method="get*" roles="amq"/> <access method="is*" roles="amq"/> <access method="set*" roles="amq"/> <access method="*" roles="amq"/> </default-access> <role-access> <match domain="org.apache.activemq.artemis"> <access method="list*" roles="amq"/> <access method="get*" roles="amq"/> <access method="is*" roles="amq"/> <access method="set*" roles="amq"/> <!-- Note count and browse are need to access the browse tab in the console--> <access method="browse*" roles="amq"/> <access method="count*" roles="amq"/> <access method="*" roles="amq"/> </match> </role-access> </authorisation> </management-context>
- artemis-roles.properties文件内容:
尝试多种方法后仍无头绪,恳请指点正确方向,非常感谢!
内容的提问来源于stack exchange,提问作者William Pham
相关产品推荐
相关产品推荐

