Technical Blog Post
Upgrading the level of WebSphere MQ that interacts with WebSphere Application Server
When you upgrade the level of WebSphere MQ you need to let WebSphere Application Server know about this change.
To do this you need to update the MQ_INSTALL_ROOT environment variable to point to the new MQ libraries.
You can make this change from the WebSphere Application Server Administrative Console:
- Log on to the WebSphere Application Server Administrative Console.
- In the navigation tree, expand Environment and select WebSphere Variables so that the WebSphere variables page displays.
- Click on MQ_INSTALL_ROOT.
- In the Value field, enter the location of the new MQ libraries.
- Click OK.
- Click Save in the Administrative Console task bar.
- On the Save page, select Synchronize changes with node.
- On the Save page, click Save.
- Close the WebSphere Application Server Administrative Console.
- Stop and restart the affected WebSphere Application Server application servers.
This change requires that you restart the WebSphere servers, and you may have to restart the servers a second time, due to the OSGI cache shared among the servers. When the MQ version changes, this cache needs to be rebuilt based on the new version. All servers sharing the cache need to reflect this new version.
There is a WebSphere environment variable that you can use that removes this second restart requirement. Starting with Fixpacks 22.214.171.124, 126.96.36.199 and 188.8.131.52, APAR PM80934 introduced the MQ_USE_BUNDLE_REFERENCE_INSTALL environment variable. When the variable is set to 'true', the WebSphere MQ JMS bundle is installed using a reference install. A reference install avoids the race condition at startup by avoiding the need for the bundle manifest data to be persisted by the OSGi framework. This variable needs to be set at the cell or node level. Do not try to use it at the Server level.
The following links have more details: