You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何编辑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>
      

尝试多种方法后仍无头绪,恳请指点正确方向,非常感谢!

内容的提问来源于stack exchange,提问作者William Pham

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.16 16:50:24