war « jmx « Java Enterprise Q&A





1. How to get the Version Number for JBoss 7 from within a WAR?    stackoverflow.com

For older JBoss these mechanisms worked :

  • Check for Class org.jboss.mx.util.MBeanServerLocator
  • Then use JSR77: Look for a JMX MBean with *:j2eeType=J2EEServer,* and get the attribute serverVersion
or
  • Check for an MBean with name jboss.system:type=Server and ...