Sha256: 2ae6c2d08632265638227c1c2d7b65b1a73b8c104f8b2c5535788f6ce9ecc642
Contents?: true
Size: 1.11 KB
Versions: 15
Compression:
Stored size: 1.11 KB
Contents
<%@page contentType="text/html" import="java.net.*,java.util.*,java.io.*"%> <html> <head> <title>JBoss-Cloud node info</title> </head> <body> <% //borrowed from jmx-console String bindAddress = ""; String serverName = ""; try { bindAddress = System.getProperty("jboss.bind.address", ""); serverName = System.getProperty("jboss.server.name", ""); } catch (SecurityException se) { } String hostname = ""; try { hostname = InetAddress.getLocalHost().getHostName(); } catch (IOException e) { } String hostInfo = hostname; if (!bindAddress.equals("")) { hostInfo = hostInfo + " (" + bindAddress + ")"; } %> <table> <% if (bindAddress.length() > 0) { %> <tr> <td>JBoss Address:</td> <td><%=bindAddress%></td> </tr> <% } if (serverName.length() > 0) { %> <tr> <td>JBoss profile:</td> <td><%=serverName%></td> </tr> <% } %> <tr> <td>Server name:</td> <td><%=request.getServerName()%></td> </tr> <tr> <td>Server port:</td> <td><%=request.getServerPort()%></td> </tr> <tr> <td>Remote address:</td> <td><%=request.getRemoteAddr()%></td> </tr> </table> </body> </html>
Version data entries
15 entries across 15 versions & 1 rubygems