Olá, tentei configurar o usuário e senha do ActiveMQ e as devidas permissões, porem não consigo enviar e nem consumir mensagens de uma fila ou tópico.
Seguem as configurações: arquivo activemq.xml
arquivo jndi.properties java.naming.factory.initial = org.apache.activemq.jndi.ActiveMQInitialContextFactory
use the following property to configure the default connector
java.naming.provider.url = tcp://localhost:61616
use the following property to specify the JNDI name the connection factory
should appear as.
#connectionFactoryNames = connectionFactory, queueConnectionFactory, topicConnectionFactry
register some queues in JNDI using the form
queue.[jndiName] = [physicalName]
queue.financeiro = fila.financeiro
register some topics in JNDI using the form
topic.[jndiName] = [physicalName]
topic.loja = topico.loja
Erro Exception in thread "main" javax.jms.JMSSecurityException: User andrade is not authorized to create: topic://ActiveMQ.Advisory.Connection