How to check the version of the WebSphere MQ classes for Java or classes for JMS that are being used

Technote (FAQ)


Question

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?

Answer

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:

Using dspmqver
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:

    dspmqver -p2

To use dspmqver to find out what version of the WebSphere MQ classes for JMS are being used, run the command shown below:
    dspmqver -p4

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
Specification-Version: 7.1.0.0

WebSphere MQ classes for JMS - com.ibm.mqjms.jar
Implementation-Title: WebSphere MQ classes for Java Message Service
Implementation-Version: 7.1.0.0 - k000-L111005.1


There is a webcast which also discusses the topic:

Webcast replay: WebSphere MQ JMS/Java Tracing for Distributed Platforms

Product Alias/Synonym

WMQ WebSphere MQ MQSeries

Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

WebSphere MQ
Java

Software version:

6.0, 7.0, 7.1, 7.5

Operating system(s):

AIX, HP-UX, Linux, Solaris, Windows

Software edition:

All Editions

Reference #:

1599810

Modified date:

2013-11-21

Translate my page

Machine Translation

Content navigation