Posted: 28 Aug 2016 22:29 EDT Last activity: 19 Sep 2016 13:34 EDT
Connecting to MQ from tomcat
We are trying to connect to a MQ using Connect-MQ from our pega instance installed on tomcat. I could read from varioud posts that we need to import the below set of jars to the tomcat/lib directory. However I am not clear on the below points:
1. The concrete list of jars required.
2. What DSS setting we need to set. Can you please tell the exact value that needs to be set.
3. Is a restart required after importing the jars?
4. Should jars be imported by like we import packages or by placing them in the folder directly outside pega.
Take the client jars from MQ 7.5 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).
The concrete list of jars is always a tricky question. Let me know if you find it docuemnted by IBM. Issues arise when upgrades occur from MQ 6 to 7 or 7.5 and the list changes over time. The presence of jars from 6 will certainly causes issues if not removed.
See this PDN link on setting DSS for compiler/defaultPaths.
I set the compiler/defaultPaths as /opt/apache-tomcate7.0.62/lib/ but nothing changed. Previously I was at least getting an error message that jars are missing but now I am just getting an exception without any specific reason mentioned. Is there anything that I am doign wrong while configuring the defaultPath. Is there anywhere I can double check that the jars are accessible to Pega ??
If you go into SMA > Advanced >ETier Runtime Environment, you can search for Java classes. If you search for one that is used by MQ, this should tell you if it can be found and if so where it is pulling the class from.