[jboss-jira] [JBoss JIRA] Commented: (JBAS-5743) MBeans have hard coded "localhost" in their names
Dimitris Andreadis (JIRA)
jira-events at lists.jboss.org
Wed Jul 9 10:25:27 EDT 2008
[ http://jira.jboss.com/jira/browse/JBAS-5743?page=comments#action_12420551 ]
Dimitris Andreadis commented on JBAS-5743:
------------------------------------------
Did you read my post?
For 'jboss.management.local:J2EEServer=Local,j2eeType=JVM,name=localhost' the 'name' is hardcoded:
JVM jvm = new JVM("localhost", lServer,
System.getProperty("java.version"),
System.getProperty("java.vendor"),
hostName);
According to the jsr77 spec the value of name is arbitrary and should identify the resource, in this case the JVM the server is running on.
In this regard a more appropriate name would be the value of one (or more) of the properties:
java.runtime.name Java(TM) 2 Runtime Environment, Standard Edition
java.runtime.version 1.5.0_09-b03
java.specification.name Java Platform API Specification
java.specification.vendor Sun Microsystems Inc.
java.specification.version 1.5
java.vendor Sun Microsystems Inc.
java.vendor.url http://java.sun.com/
java.vendor.url.bug http://java.sun.com/cgi-bin/bugreport.cgi
java.version 1.5.0_09
java.vm.info mixed mode
java.vm.name Java HotSpot(TM) Server VM
java.vm.specification.name Java Virtual Machine Specification
java.vm.specification.vendor Sun Microsystems Inc.
java.vm.specification.version 1.0
java.vm.vendor Sun Microsystems Inc.
java.vm.version 1.5.0_09-b03
For the other mbeans, those are controlled/created by tomcat, so I don't know.
> MBeans have hard coded "localhost" in their names
> -------------------------------------------------
>
> Key: JBAS-5743
> URL: http://jira.jboss.com/jira/browse/JBAS-5743
> Project: JBoss Application Server
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: JMX
> Affects Versions: JBossAS-4.0.5.GA, JBossAS-4.2.2.GA, JBossAS-5.0.0.CR1
> Reporter: Marcus Moyses
> Assigned To: Marcus Moyses
> Priority: Minor
> Fix For: JBossAS-5.0.0.CR2, JBossAS-4.2.3.GA
>
>
> Some MBeans (like jboss.management.local:J2EEServer=Local,j2eeType=JVM,name=localhost and some others under jboss.web) have "localhost" hard coded in their names. This should be changed to reflect the bind address system property.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list