the activemq destination map does not support prefix matching on multiple paths but you can provide multiple wildcard matches via a composite destination today using a comma separated list.
In the main, "a.dlq" will match
, but a.b.dlq needs a
- so there needs to be a match to the number of expected paths to the number of wildcards. Having extra matches is not a problem.
A composite destination like
will give match FOO.DLQ, FOO.BAR.DLQ and FOO.BAR.BAR.DLQ etc.
There is a problem with the match all destinations mapping, if there is no destination configured then an Any destination (with composite of Queue=">" and Topic=">" is used under the covers, it has a physical name of "0" which is > than the first character of *.DLQ" so it gets picked first in error.
A workaround is to add your own default mapping for queues and topics
rather than use a filteredKahaDB and not specify a destination, with the default "all" behaviour