[jboss-cvs] JBossAS SVN: r74417 - trunk/varia/src/resources/jmx/html.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Jun 11 16:54:27 EDT 2008
Author: csaldanh
Date: 2008-06-11 16:54:26 -0400 (Wed, 11 Jun 2008)
New Revision: 74417
Modified:
trunk/varia/src/resources/jmx/html/displayMBeans.jsp
Log:
JBAS-3051: Include server config in jmx-console header
Modified: trunk/varia/src/resources/jmx/html/displayMBeans.jsp
===================================================================
--- trunk/varia/src/resources/jmx/html/displayMBeans.jsp 2008-06-11 20:51:11 UTC (rev 74416)
+++ trunk/varia/src/resources/jmx/html/displayMBeans.jsp 2008-06-11 20:54:26 UTC (rev 74417)
@@ -7,19 +7,16 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<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>
- <img src="images/logo.gif" align="right" border="0" alt="logo" />
<%
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) {
}
@@ -32,9 +29,16 @@
if (!bindAddress.equals("")) {
hostAddressDisplay = hostAddressDisplay + " (" + bindAddress + ")";
}
+ 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>
+ <img src="images/logo.gif" align="right" border="0" alt="logo" />
<h1>JMX Agent View</h1>
- <h3><%=hostAddressDisplay%></h3>
+ <h3><%=hostInfo%></h3>
<form action="HtmlAdaptor?action=displayMBeans" method="post" name="applyFilter" id="applyFilter">
ObjectName Filter (e.g. "jboss:*", "*:service=invoker,*"): <br />
More information about the jboss-cvs-commits
mailing list