Posted: 26 Jul 2017 10:03 EDT Last activity: 16 Oct 2018 12:03 EDT
MQ question related to WAS to Tomcat migration
Hi - we are on 7.2.1 and are in the process of migrating from WAS to Tomcat. We are using mq to make service calls to other applications in our company. We are using Bindings mode for MQ (local queue manager on each server) and are using native Websphere MQ and not JMS. We really didn't need to do much in WAS related to the mq configuration (set the native mq path in the "Websphere MQ Messaging provider" definition) to get native mq to work. What configurations do I need to do within the TomCat configuration files to make use of native mq? Or, does Tomcat only work with jms? We brought up the Tomcat jvm without any mq definitions; the application is working fine other than mq. I am brand new to Tomcat.
We always need client jars for tomcat to talk with MQ. Take the client jars from MQ of whatever version you are using and place them at Tomcat level /lib folder. Your catalina.properties setting will see to it they are picked up by the "common" classloader. You might also want to edit catalina.properties so that these jars are not scanned for config info at startup (although they are not that big).
Please note that you should keep MQ client jars at the tomcat level (/lib directory - use the client jars for your version of the MQ server). Importing jars to database can cause classloading conflict with the OOTB pega jars.
After this you need to create following DSS:
value: all MQ jars you have in above step separated by comma.
After that Create MQ server in PRPC app and Configure Connect-MQ in PRPC app.
Hi - thanks for all of the replies and information. We were able to get mq running using the information provided by Abhishek. We are using bindings mode, so we needed to do one additional step to finally get it working. We needed to get the java.library.path updated with /opt/mqm/java/lib64 path so that libmqjbnd.so could be found.