添加管理员用户以访问 activemq 队列

adding the admin user to access the activemq queues

我已经设置了一个 activemq 并配置了用户队列。我已经创建了一个队列和两个用户,即 producerconsumer,具有适当的读写权限。我可以使用 producer post 消息并使用 consumer 使用消息。

当我使用 admin/admin 登录到 activemq 的管理页面时,我无法查看队列中的消息。如何添加 admin 用户访问队列。

我在 activemq.xml

中添加了以下配置条目
     <plugins>
      <simpleAuthenticationPlugin>
        <users>
            <authenticationUser username="producer" password="producer" groups="producers" />
            <authenticationUser username="consumer" password="consumer" groups="consumers" />
            <authenticationUser username="defaultUser"  password="defaultPassword" groups="admins" />
        </users>
      </simpleAuthenticationPlugin>
      <authorizationPlugin>
        <map>
            <authorizationMap>
                <authorizationEntries>
                    <authorizationEntry queue="test.Queue" write="producers" read="consumers" admin="admins" />
                    <authorizationEntry topic="ActiveMQ.Advisory.>" read="producers,consumers" write="producers,producers" admin="admins,producers,consumers"/>
                </authorizationEntries>
            </authorizationMap>
        </map>
      </authorizationPlugin>
    </plugins>

请让我知道哪里出错了。

您的 Web 控制台管理员用户在 admins 组中? 我认为你需要添加 authenticationUser username="admin" password="admin" groups="admins" />