We have a program tha dynamically creates a divert on a JMS topic address.
Unexpectedly, we see the divert name appended to the end of the list of QueueNames in the Core Address MBean for the topic.
Is this correct behaviour? The manual suggests that this attribute should just be a list of the queues (distribution hornetq-2.1.2.Final/docs/user-manual/en/html_single/index.htm section 220.127.116.11 "A list of deployed core queues can be retrieved using the getQueueNames() method.")
You are right: this is a bug.
The Core address MBean wrongly list diverts with queues.
In fact, it lists "bindings" associated to the queue (which can be diverts or local/remote queues).
I'll fix this bug by making sure only queues are listed by QueueNames: https://jira.jboss.org/browse/HORNETQ-509
I'll also add a BindingNames attribute to list of resources bound to an address (so you can check if there is a divert for example).
thanks for the report,
|Retrieving data ...|