[jboss-user] [Beginners Corner] - Getting Server's 'Config Name' to display in JSP

zmcmahon do-not-reply at jboss.com
Thu Aug 13 11:30:40 EDT 2009


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

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4249467#4249467

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4249467



More information about the jboss-user mailing list