Trying to migrate from IBM WebSphere MQ V6 to V7.
One of the line that we have is
((com.ibm.mq.jms.MQQueue) queue).setTargetClient(JMSC.MQJMS_CLIENT_NONJMS_MQ);
JMSC.MQJMS_CLIENT_NONJMS_MQ shows up as deprecated in V7.
What is the proper replacement for the line? I looked around for a while, but couldn't find any info.
Please see the WebSphere MQ Using Java manual. In particular, look in the Properties of Objects section and scroll down to Table 3. Next, find the entry in Table 3 for TARGCLIENT. In the far right column are the values for each of the setter methods. In this case, the values for the setTargetClient method are:
WMQConstants.WMQ_CLIENT_JMS_COMPLIANTWMQConstants.WMQ_CLIENT_NONJMS_MQIn the same manual, it is a good idea to review the installation and verification for the new version. Among other things, the classes have been repackaged and so the [CLASSPATH][3] requirements have changed.
Since you are migrating from V6 to V7, another good reference is the WebSphere MQ Migration manual. In particular, please see the section entitled Java and JMS considerations for additional advice for migrating applications. Other sections in this manual will be helpful as well.
Finally, it is worth mentioning that Fix Pack 7.0.1.5 has just been released and contains several Java/JMS related fixes. If you are running an earlier version of V7, it would be an extremely good idea to download and apply the maintenance. There are two ways to do this. First, the WMQ client download always has the latest version. You can always download it and install over top of a previous client. It is available as a free download at SupportPac MQC7. Alternatively, you can download the Fix Pack from the Recommended Fixes page. This is supplied as a platform-specific upgrade to the existing install, for example an EXE on Windows, an RPM for Linux, etc.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With