[jboss-jira] [JBoss JIRA] Commented: (JBAS-3051) change jmx console title to display the name of the jboss server configuration with the machine name

Dimitris Andreadis (JIRA) jira-events at lists.jboss.org
Mon Jun 9 11:41:09 EDT 2008


    [ http://jira.jboss.com/jira/browse/JBAS-3051?page=comments#action_12416092 ] 
            
Dimitris Andreadis commented on JBAS-3051:
------------------------------------------

I think Jim talks about the <title> really, e.g. something like:

<title>JBoss JMX Management Console - poseidon (127.0.0.1) </title>

I wouldn't bother adding the config name on the title.

Maybe that could be added in the text:

JMX Agent View
poseidon (127.0.0.1) - default

In any case, it's preferable to read the config from the 'jboss.server.name' system property rather than doing this stuff:

2c2
<    import="java.net.*,java.util.*,org.jboss.jmx.adaptor.model.*,javax.management.*,java.io.*"
---
>    import="java.net.*,java.util.*,org.jboss.jmx.adaptor.model.*,java.io.*"
20,21c20
< 	    ObjectName obname = new ObjectName("jboss.system:type=ServerConfig");
<             hostname = InetAddress.getLocalHost().getHostName() + "Config: " + (String)org.jboss.jmx.adaptor.control.Server.getMBeanServer().getAttribute(obname,"ServerName");
---
>             hostname = InetAddress.getLocalHost().getHostName() + "Config: " + (String)org.jboss.jmx.adaptor.control.Server.getMBeanServer().getAttribute("type=ServerConfig","ServerName");




> change jmx console title to display the name of the jboss server configuration with the machine name
> ----------------------------------------------------------------------------------------------------
>
>                 Key: JBAS-3051
>                 URL: http://jira.jboss.com/jira/browse/JBAS-3051
>             Project: JBoss Application Server
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: JMX/Web Console
>            Reporter: Jim Moran
>         Assigned To: Clive Saldanha
>            Priority: Trivial
>         Attachments: config_in_header.patch
>
>
> When running multiple instances of JBoss on one machine the jmx console's title does not distinguish which instance it is for.
> It would be easier to distinguish which instance a jmx console was for if the title contained the server config name as well as the machine name. 

-- 
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