[jboss-cvs] JBossAS SVN: r74394 - branches/Branch_4_2/varia/src/resources/jmx/html.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Jun 11 12:02:31 EDT 2008


Author: csaldanh
Date: 2008-06-11 12:02:30 -0400 (Wed, 11 Jun 2008)
New Revision: 74394

Modified:
   branches/Branch_4_2/varia/src/resources/jmx/html/displayMBeans.jsp
Log:
JBAS-3051: Include server config in title


Modified: branches/Branch_4_2/varia/src/resources/jmx/html/displayMBeans.jsp
===================================================================
--- branches/Branch_4_2/varia/src/resources/jmx/html/displayMBeans.jsp	2008-06-11 15:27:24 UTC (rev 74393)
+++ branches/Branch_4_2/varia/src/resources/jmx/html/displayMBeans.jsp	2008-06-11 16:02:30 UTC (rev 74394)
@@ -3,24 +3,17 @@
 %>
 <html>
 <head>
-   <title>JBoss JMX Management Console</title>
-   <link rel="stylesheet" href="style_master.css" type="text/css">
-   <meta http-equiv="cache-control" content="no-cache">
-</head>
-<body>
-<table width="100%">
-   <table>
-      <tr>
-         <td><img src="images/logo.gif" align="left" border="0" alt="JBoss"></td>
-         <td valign="middle">
-         <%
+    <%
          String bindAddress = "";
          String hostname = "";
+	 String serverName = "";
+	 String hostInfo = "";
          String hostAddressDisplay = "";
 
          try
          {
             bindAddress = System.getProperty("jboss.bind.address", "");
+            serverName = System.getProperty("jboss.server.name", "");
          }
          catch (SecurityException se) {}
          
@@ -33,9 +26,20 @@
          hostAddressDisplay = hostname;
          if (!bindAddress.equals("")) { 
            hostAddressDisplay = hostAddressDisplay + " (" + bindAddress + ")";
-         }         
-         %>
-         <h1>JMX Agent View <code><%= hostAddressDisplay %></code></h1>
+         }
+         hostInfo = hostAddressDisplay + " - " + serverName;         
+   %>
+   <title>JBoss JMX Management Console <%= hostAddressDisplay %></title>
+   <link rel="stylesheet" href="style_master.css" type="text/css">
+   <meta http-equiv="cache-control" content="no-cache">
+</head>
+<body>
+<table width="100%">
+   <table>
+      <tr>
+         <td><img src="images/logo.gif" align="left" border="0" alt="JBoss"></td>
+         <td valign="middle">
+         <h1>JMX Agent View <code><%= hostInfo %></code></h1>
          </td>
       </tr>
    </table>




More information about the jboss-cvs-commits mailing list