Using wsadmin to find out the version of the MQ Resource Adapter

Technote (FAQ)


You want to use wsadmin to find out the version of the WebSphere MQ Resource Adapter used by the WebSphere Application Server


This note provides the details on how to create a Jython script and run it via wsadmin:

1) Move to working directory, such as c:\temp in Windows or /tmp in Unix.

2) Create a Jython script, such as "mqrar-version.jy"

< begin file >
wmqInfoMBeansUnsplit = AdminControl.queryNames("WebSphere:type=WMQInfo,*")
wmqInfoMBeansSplit = AdminUtilities.convertToList(wmqInfoMBeansUnsplit)
for wmqInfoMBean in wmqInfoMBeansSplit: print wmqInfoMBean; print AdminControl.invoke(wmqInfoMBean, 'getInfo', '')
< end file >

3) Run the script. The following includes also the capturing of the results in an output file:

C:\temp\> wsadmin -lang jython -f mqrar-version.jy > mqrar-version.out

Unix: -lang jython -f mqrar-version.jy > mqrar-version.out

3) Example of the output. Some output lines were deleted, to keep this technote short.

WASX7209I: Connected to process "server1" on node ANGELITONode01 using SOAP connector;
The type of process is: UnManagedProcess
WMSG1700I: Currently active WebSphere MQ messaging provider configuration in WebSphere Application Server Platform [BASE cf041228.02], report at 12/12/12 8:42 AM);
WMSG1702I: Using the WebSphere MQ Resource Adapter
WMSG1703I: RAR implementation version
WMSG1710I: Install Directory is C:\Program Files\IBM\WebSphere\AppServer\installedConnectors\wmq.jmsra.rar.
WMSG1711I: Native File Directory is C:\Program Files\IBM\WebSphere MQ\java\lib.
WMSG1712I: Version is
WMSG1713I: Jar Files: C:\Program Files\IBM\WebSphere\AppServer\installedConnectors\wmq.jmsra.rar\${version.number} - ${build.level})
C:\Program Files\IBM\WebSphere\AppServer\installedConnectors\wmq.jmsra.rar\
C:\Program Files\IBM\WebSphere\AppServer\installedConnectors\wmq.jmsra.rar\ - k701-107-111107)
C:\Program Files\IBM\WebSphere\AppServer\installedConnectors\wmq.jmsra.rar\dhbcore.jar("DH610-GOLD" ).
WMSG1714I: Native Libraries C:\Program Files\IBM\WebSphere MQ\java\lib\mqjbnd.dll
C:\Program Files\IBM\WebSphere MQ\java\lib\mqjexitstub02.dll
C:\Program Files\IBM\WebSphere MQ\java\lib\PgmIpLayer.dll

WMSG1705I: Information from WebSphere MQ messaging provider follows:
WMSG1715I: Name is
WMSG1716I: Title is WebSphere MQ classes for Java Message Service.
WMSG1717I: Type is INFRA.
WMSG1718I: Version is
WMSG1719I: Implementation info is {CMVC=k701-107-111107}.


WMSG1715I: Name is
WMSG1716I: Title is IBM WebSphere MQ.
WMSG1717I: Type is MPI.
WMSG1718I: Version is
WMSG1719I: Implementation info is {mqjbnd level=k701-109-120705, CMVC=k701-107-111107}.


Cross reference information
Segment Product Component Platform Version Edition
Application Servers WebSphere Application Server Administrative Scripting Tools (for example: wsadmin or ANT) AIX, HP-UX, Linux, Solaris, Windows 8.5, 8.0, 7.0

Product Alias/Synonym

WebSphere MQ WMQ WebSphere Application Server WAS WSAS

Rate this page:

(0 users)Average rating

Document information

More support for:

WebSphere MQ
APAR / Maintenance

Software version:


Operating system(s):

AIX, HP-UX, Linux, Solaris, Windows

Reference #:


Modified date:


Translate my page

Machine Translation

Content navigation