Hi -
I'd like to develop a JSP page which we can use to determine which jboss server instance we are connected to. The idea is to use this page to determine which server your session is on when you are hitting a clustered application.
I see in the ServerInfo.jsp page within the web-console, they get access to the org.jboss.system.server.ServerConfigImplMBean object through a special taglib and then do the following:
serverConfig.getServerHomeDir().getName()
Is there any way for me to get access to this object or the server name without using this taglib?
Thanks
There's a simpler way. You can use the system properties that JBoss sets http://www.jboss.org/community/wiki/JBossProperties:
System.getProperty("jboss.server.name");