quarkusamqpreactiveactivemq-artemis

Is it possible to create a Queue in Reactive Messaging AMQP Connector without a broker.xml file?


I am following the documentation about Reactive Messaging AMQP Connector and I have a created a producer as well as a consumer class. I have set the needed properties as defined in documentation, in my application.properties file. Besides the address, I need a queue to send my messages and for that I need a broker.xml file. That does the trick and I can see my address with it's queue when I login through my browser on 8161 port.

However, it seems to me odd to have such a file only to define my queue. Also, it makes difficult to use Quarkus Dev Services for my tests since I cannot see any property that I could use to pass my broker.xml file into the generated container.

Is there any other way to define my queue, without the usage of a broker.xml file? Am I missing something on this?


Solution

  • ActiveMQ Artemis supports system properties and broker properties to set the broker configuration, i.e. to set the address TEST with the queue TEST you can use the following properties:

    addressConfigurations.TEST.routingTypes=ANYCAST
    addressConfigurations.TEST.queueConfigs.TEST.address=TEST
    addressConfigurations.TEST.queueConfigs.TESTE.routingType=ANYCAST