Technote (FAQ)
Question
You want to use wsadmin to find out the version of the WebSphere MQ Resource Adapter used by the WebSphere Application Server
Answer
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:
Windows:
C:\temp\> wsadmin -lang jython -f mqrar-version.jy > mqrar-version.out
Unix:
wsadmin.sh -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
WebSphere:name=server1,process=server1,platform=dynamicproxy,node=ANGELITONode01,
version=8.0.0.4,type=WMQInfo,mbeanIdentifier=null,cell=ANGELITONode01Cell,spec=1.0
------------------------------------------------------------------------------------------------------
WMSG1700I: Currently active WebSphere MQ messaging provider configuration in WebSphere Application Server Platform 8.0.0.4 [BASE 8.0.0.4 cf041228.02], report at 12/12/12 8:42 AM);
WMSG1702I: Using the WebSphere MQ Resource Adapter
WMSG1703I: RAR implementation version 7.0.1.7-k701-107-111107
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 7.0.1.7.
WMSG1713I: Jar Files: C:\Program Files\IBM\WebSphere\AppServer\installedConnectors\wmq.jmsra.rar\com.ibm.mq.commonservices.jar(${version.number} - ${build.level})
C:\Program Files\IBM\WebSphere\AppServer\installedConnectors\wmq.jmsra.rar\com.ibm.mq.connector.jar(7.0.1.7-k701-107-111107)
C:\Program Files\IBM\WebSphere\AppServer\installedConnectors\wmq.jmsra.rar\com.ibm.mq.headers.jar(7.0.1.7 - 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 com.ibm.mq.jms.
WMSG1716I: Title is WebSphere MQ classes for Java Message Service.
WMSG1717I: Type is INFRA.
WMSG1718I: Version is 7.0.1.7.
WMSG1719I: Implementation info is {CMVC=k701-107-111107}.
...
WMSG1715I: Name is com.ibm.msg.client.wmq.
WMSG1716I: Title is IBM WebSphere MQ.
WMSG1717I: Type is MPI.
WMSG1718I: Version is 7.0.1.7.
WMSG1719I: Implementation info is {mqjbnd level=k701-109-120705, CMVC=k701-107-111107}.
...
------------------------------------------------------------------------------------------------------
| 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:
Copyright and trademark information
IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.