Red Hat Training

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

3.5. Confirming the Version of your JBoss Enterprise Application Platform Installation

There are three ways you can verify the version number of your JBoss Enterprise Application Platform installation.
Using the -V with the startup script

You can retrieve information about the version of your JBoss Enterprise Application Platform installation by running the same script used to start the server with the -V switch. For Linux and Unix installations this script is run.sh and on Microsoft Windows installations it is run.bat. Regardless of platform the script is located in JBOSS_HOME/bin. Using these scripts to start your server is covered in Chapter 4, Launching the JBoss Enterprise Application Platform Server.

Running this script with the -V switch will not start the server, nor does it require the server to be running. It displays information about the JBoss Enterprise Application Platform version and its configured Java environment. Below is an example of using this on an installation of JBoss Enterprise Application Platform on Red Hat Linux. Note the version number (JBoss 5.1.0.GA or JBoss 5.1.1.GA) displayed as the last item before the license information.
The screen below shows output for JBoss Enterprise Application Platform 5.1.0.GA. The output will be similar for JBoss Enterprise Application Platform 5.1.1.GA
[bin]$ ./run.sh -V
=========================================================================

  JBoss Bootstrap Environment

  JBOSS_HOME: /opt/JBoss/EnterprisePlatform-5.1.0/jboss-eap-5.1/jboss-as

  JAVA: /usr/lib/jvm/jre-1.6.0-openjdk//bin/java

  JAVA_OPTS: -Dprogram.name=run.sh -server -Xms1303m -Xmx1303m -XX:MaxPermSize=256m 
  -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 
  -Dsun.rmi.dgc.server.gcInterval=3600000 
  -Dsun.lang.ClassLoader.allowArraySyntax=true -Djava.net.preferIPv4Stack=true

  CLASSPATH: /opt/JBoss/EnterprisePlatform-5.1.0/jboss-eap-5.1/jboss-as/bin/run.jar

=========================================================================

JBoss 5.1.0 (build: SVNTag=JBPAPP_5_1_0 date=201009150028)

Distributable under LGPL license.
See terms of license at gnu.org.

[bin]$


Using the Web console

When the JBoss Enterprise Application Platform server is running you can retrieve its version information from the first page of the Web Console. This is located at http://localhost:8080/web-console/.

Version details displayed in Web Console

Figure 3.2. Version details displayed in Web Console

View the console output, or boot.log file

When the server is started, the version is echoed to the console, and written to JBOSS_HOME/server/production/log/boot.log:

15:36:39,026 INFO  [ServerImpl] Starting JBoss (Microcontainer)...
15:36:39,027 INFO  [ServerImpl] Release ID: JBoss [EAP] 5.1.0 
(build: SVNTag=JBPAPP_5_1_0 date=201009150028)