红帽AMQ 7.1代理-JMSSecurityException

时间:2018-11-29 09:58:02

标签: activemq-artemis

  

javax.jms.JMSSecurityException:AMQ119213:用户:史诗对于地址service_input.service_input上的队列service_input没有权限='CONSUME'

在broker.xml中已授予用户史诗权限,但仍未解决问题

<security-settings>
     <security-setting match="#">
        <permission type="createNonDurableQueue" roles="amq"/>
        <permission type="deleteNonDurableQueue" roles="amq"/>
        <permission type="createDurableQueue" roles="amq, epic, guest"/>
        <permission type="deleteDurableQueue" roles="amq,epic, guest"/>
        <permission type="createAddress" roles="amq, epic, guest"/>
        <permission type="deleteAddress" roles="amq, epic , guest"/>
        <permission type="consume" roles="amq, epic , guest"/>
        <permission type="browse" roles="amq, epic , guest"/>
        <permission type="send" roles="amq, epic , guest"/>
        <permission type="manage" roles="amq, epic , guest"/>
     </security-setting>
     </security-settings>
       <address-settings>
         <address-setting match="epic.#">
            <dead-letter-address>DLQ</dead-letter-address>
            <expiry-address>ExpiryQueue</expiry-address>
            <redelivery-delay>0</redelivery-delay>
            <max-size-bytes>-1</max-size-bytes>
            <address-full-policy>PAGE</address-full-policy>
            <auto-create-queues>true</auto-create-queues>
            <auto-create-addresses>true</auto-create-addresses>
            <auto-create-jms-queues>true</auto-create-jms-queues>
            <auto-create-jms-topics>true</auto-create-jms-topics>
         </address-setting>

    </address-settings>
        <addresses>
        <address name="epic.PipelineEngine">
            <anycast>
               <queue name="execute_exchange" />
               <queue name="service_exchange" />
               <queue name="input_exchange" />
               <queue name="unknown_exchange" />
               <queue name="control_message_exchange" />
               <queue name="notification_exchange" />
            </anycast>
         </address>
  </addresses>

0 个答案:

没有答案