Sometimes, WebSphere MQ users need to know the version of the WebSphere MQ classes for Java™ and classes for JMS that are being used by an application. This information is logged in a trace file, but how else can a user find this information?
There are two ways of determining the version of the WebSphere MQ classes for Java and classes for JMS that are being used by an application:
The dspmqver command displays WebSphere MQ version and build information.
To use dspmqver to find out the version of the WebSphere MQ classes for Java that are being used, run the following command:
To use dspmqver to find out what version of the WebSphere MQ classes for JMS are being used, run the command shown below:
Information on dspmqver can be found on the dspmqver page of the WebSphere MQ Information Center.
You can also refer to the technote: Displaying the WebSphere MQ version
Manually checking the information in the WebSphere MQ JAR files
Alternatively, you can check a specific JAR installed as part of WebSphere MQ to find out the version information. The JAR to check is shown below:
WebSphere MQ classes for Java: com.ibm.mq.jar
WebSphere MQ classes for JMS : com.ibm.mqjms.jar
Both of these JARs are located in the directory MQ_INSTALLATION_PATH/java/lib.
Once the JARs have been located, follow the procedure below:
1) Unjar the appropriate JAR using one of the commands shown:
WebSphere MQ classes for Java:
#jar -xvf com.ibm.mq.jar
WebSphere MQ classes for JMS:
#jar -xvf com.ibm.mqjms.jar
2) Enter the uncompressed jar directory. This will contain a subdirectory called META-INF, which has a file in it called MANIFEST.MF.
3) Open this file, and look for a line similar to the ones shown below. These lines indicate which version of the WebSphere MQ classes for Java or classes for JMS are being used by your application:
WebSphere MQ classes for Java - com.ibm.mq.jar
Specification-Title: WebSphere MQ classes for Java
WebSphere MQ classes for JMS - com.ibm.mqjms.jar
Implementation-Title: WebSphere MQ classes for Java Message Service
Implementation-Version: 184.108.40.206 - k000-L111005.1
There is a webcast which also discusses the topic:
Webcast replay: WebSphere MQ JMS/Java Tracing for Distributed Platforms
WMQ WebSphere MQ MQSeries