Menu Close
Settings Close

Language and Page Formatting Options

Red Hat Training

A Red Hat training course is available for JBoss Enterprise Application Platform Common Criteria Certification

3.6. Confirming the Version of your JBoss EAP Installation

There are three ways in which you can verify the version number of your JBoss EAP installation.
  1. Using the -V with the startup script
    You can retrieve information about the version of your JBoss EAP installation by running the same script used to start the server with the -V switch. For Linux and Unix installations this script is and on Microsoft Windows installations it is run.bat. Regardless of platform the script is located in $JBOSS_HOME/bin. Using these scripts to actually start your server is dealt with in Chapter 4, Launching the JBoss EAP Server.
    Running this script with the -V switch will not start the JBoss EAP server nor does it require the JBoss EAP server to be running. It displays information about the JBoss EAP version and its configured Java environment. Below is an example of using this on an installation of JBoss EAP on Red Hat Linux. Note the version number (JBoss 4.3.0.GA_CP03) displayed as the last item before the license information.
    $ ./ -V
      JBoss Bootstrap Environment
      JBOSS_HOME: /opt/JBoss/4.3.CP03/jboss-eap-4.3/jboss-as
      JAVA: java
      JAVA_OPTS: -server -Xms1503m -Xmx1503m -Dsun.rm 
    i.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 
      CLASSPATH: /opt/JBoss/4.3.CP03/jboss-eap-4.3/jboss-as/bin/run.jar
    JBoss 4.3.0.GA_CP03 (build: SVNTag=JBPAPP_4_3_0_GA_CP03 date=200810241616)
    Distributable under LGPL license.
    See terms of license at
  2. Using the JMX Console
    When the JBoss EAP server is running you can retreive many details about it using the JMX Console at http://localhost:8080/jmx-console
    The MBean which contains the version information has the Domain Name of jboss.system and type of server. It is directly accessible at http://localhost:8080/jmx-console/HtmlAdaptor?action=inspectMBean&name=jboss.system%3Atype%3DServer. The attributes that contain the version information are: VersionNumber, Version and VersionName.
    Version details displayed in JMX Console

    Figure 3.10. Version details displayed in JMX Console

  3. Using the Web Console
    When the JBoss EAP server is running you can can retrieve its version information from the first page of the Web Console as well. This is located at http://localhost:8080/web-console/.
    Version details displayed in Web Console

    Figure 3.11. Version details displayed in Web Console

Additionally, when the server is started the version is both echoed to the console and written to $JBOSS_HOME/server/production/log/boot.log:
12:33:33,798 INFO  [Server] Starting JBoss (MX MicroKernel)...
12:33:33,798 INFO  [Server] Release ID: JBoss [EAP] 4.3.0.GA_CP03 (build: 
SVNTag=JBPAPP_4_3_0_GA_CP03 date=200810241616)