1) I have defined an address "myAddress" in the file broker.xml:
<addresses>
...
<address name="myAddress">
<multicast/>
</address>
</addresses>
2) I also have disabled the auto-delete-addresses (which does not seem necessary as per my use case, because my address is not auto-created)
<address-setting match="#">
...
<auto-delete-addresses>false</auto-delete-addresses>
</address-setting>
As per my understanding, this address is not auto created, and this address does not get auto-deleted by Artemis, as expected.
But, once I have one or more consumers connected to a queue matching this address, and when those consumers all leave, then the address is deleted:
INFO [org.apache.activemq.artemis.core.server] deleting auto-created address "myAddress."
Why is that ? I don't understand why:
- this address is considered as auto-created
- this address is still deleted despite the auto-delete-addresses flag