Брокер Red Hat AMQ 7.1 - исключение JMSSecurityException - PullRequest
0 голосов
/ 29 ноября 2018

javax.jms.JMSSecurityException: AMQ119213: Пользователь: epic не имеет разрешения = 'CONSUME' для очереди service_input по адресу service_input.service_input

В broker.xml дали разрешениепользователю epic, но проблема до сих пор не решена

<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>
...