I would like to ask for advice regarding a topic I have with ActiveMQ.
I am using ActiveMQ 5.15. I am trying to modify the xml configuration file for adding a virtual destination using CompositeQueues that forward to another queue/topic. From the ActiveMQ documentation for this component, the schema is the following:
<compositeQueue name="IncomingOrders">
<forwardTo>
<topic physicalName="Notifications" />
</forwardTo>
</compositeQueue>
I have been able to forward messages from existing queues which are named like for example request.typeA.classC . However, I have several queues that use the same prefix request.typeA. and therefore my intention is to use wildcards for not having to define a composite queue for each existing queue with that prefix, and make it easier to maintain.
I would need something like this:
<compositeQueue name="request.typeA.>">
<forwardTo>
<topic physicalName="Notifications" />
</forwardTo>
</compositeQueue>
However that piece of code does not work, and I suspect it's because it's simply not supported (not yet at least). I have tried successfully to use wildcards in the physicalName property, but not in the name.
One precondition I have is that I must keep the different queues that use the same prefix (cannot join them into one).
Another precondition I have is that I cannot create new queues/topics dynamically by code (due to server permissions). That's why I am interested in modify the xml configuration file.
So I wonder if any of you know if it is possible to use wildcards into the name property (I have not read any evidence of that in the documentation), and if so, how could I do it. If you know for sure it is not possible to do that with the current ActiveMQ version, I would thank you that you could confirm it.
I would appreciate as well other alternatives/advice you could suggest for the same purpose I intend, and by meeting the preconditions I have mentioned before. I have also read about the Mirrored Queues, however that is a set up that affects all the existing queues (I am just interested for this in a small subset of them) and might have a considerable impact in the performance.
Thank you so much in advance for your time and best regards.