Description:
Websphere MQ client calls
Solution:
To instrument the client side calls made from the Tomcat app to websphere MQ, follow these steps:
- Configure the MQ agent extension on the Tomcat agent:
- In <AppServer_Home>/wily/core/ext/ copy the MQNameFormatter.jar
- Add the required pbd files to the directives list:
introscope.autoprobe.directivesFile=websphere-typical.pbl,hotdeploy,webspheremq.pbl
- Make sure the following IBM client jars are added to the application class path or to the tomcat/common/lib folder:
For WebSphere MQ v6.x, copy the following JAR files from <IBM WebSphere MQ installation directory>/java/lib to the classpath
- com.ibm.mqjms.jar
For WebSphere MQ v7.0, copy the following JAR files from <IBM WebSphere MQ installation directory>/java/lib to the classpath
- com.ibm.mq.commonservices.jar
Note: If you are monitoring the Queue Managers of both WebSphere MQ v6.x and WebSphere MQ v7.0, then use the WebSphere MQ v7.0 library files - Remove the above client jars from the tomcat/endorsed/lib folder. This is very important because any jar available in the tomcat/endorsed/lib will be loaded as part of the JVM bootstrap loader, and by default the Introscope Agent skips the instrumentation of the classes loaded by the bootstrap loader, thus preventing MQ Powerpack from monitoring the MQ calls.