[jboss-jira] [JBoss JIRA] (WFLY-3191) Console uses hardcoded hornetq-server name as "default" causes issue while moniroting JMS metrics
Jay Kumar SenSharma (JIRA)
issues at jboss.org
Mon Mar 31 08:58:13 EDT 2014
Jay Kumar SenSharma created WFLY-3191:
-----------------------------------------
Summary: Console uses hardcoded hornetq-server name as "default" causes issue while moniroting JMS metrics
Key: WFLY-3191
URL: https://issues.jboss.org/browse/WFLY-3191
Project: WildFly
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Web Console
Affects Versions: 8.0.1.Final
Environment: All
Reporter: Jay Kumar SenSharma
Assignee: Heiko Braun
Looks like the API [1] is using hardcoded hornetQ server name as "default" inside the "QueueMetrics.java" as following:
{code}
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;
}
};
{code}
- 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"
{code}
<subsystem xmlns="urn:jboss:domain:messaging:2.0">
<hornetq-server name="testing">
.
.
</hornetq-server>
</subsystem>
{code}
[1] https://github.com/hal/core/blob/master/gui/src/main/java/org/jboss/as/console/client/shared/runtime/jms/QueueMetrics.java
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list