Details
-
Bug
-
Resolution: Done
-
Major
-
None
-
None
Description
Looks like the API [1] is using hardcoded hornetQ server name as "default" inside the "QueueMetrics.java" as following:
final HelpSystem.AddressCallback addressCallback = new HelpSystem.AddressCallback() { @Override public ModelNode getAddress() { ModelNode address = new ModelNode(); address.get(ModelDescriptionConstants.ADDRESS).set(RuntimeBaseAddress.get()); address.get(ModelDescriptionConstants.ADDRESS).add("subsystem", "messaging"); address.get(ModelDescriptionConstants.ADDRESS).add("hornetq-server", "default"); address.get(ModelDescriptionConstants.ADDRESS).add("jms-queue", "*"); return address; } };
- Above is causing issue if someone alters the "Hornetq-server" name to something else. In that case the Console will not be able to display the QueueMetrics for any JMS Queue or Topic.
- See attached Screenshot with the When the HornetQ server name was changed to "testing"
<subsystem xmlns="urn:jboss:domain:messaging:2.0"> <hornetq-server name="testing"> . . </hornetq-server> </subsystem>