Question
Unable to connect to SOLACE from Connect-JMS rule
Need to connect Pega Application to Solace queue.
Imported resource adapter (RAR file provided from Solace) on WebSphere Application Server.
JMS resources Connection Factory and Queue are configured on WebSphere Application Server.
a) Tried Direct JNDI lookup in connect-JMS rule getting following error
JNDI lookup of JMS connection factory 'JNDI/J2C/CF' failed: com.ibm.websphere.naming.CannotInstantiateObjectException: Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference object. [Root exception is java.lang.NoClassDefFoundError: com.solacesystems.jndi.SolJNDIInitialContextFactory (initialization failure)]
b) Tried Resource Reference (JMS resources are added in ejb-jar.xml and ibm-ejb-jar-bnd.xmi) in connect-JMS rule getting following error
JNDI lookup of JMS connection factory 'java:comp/env/JNDI/J2C/CF' failed: com.ibm.websphere.naming.CannotInstantiateObjectException: Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference object. [Root exception is com.ibm.websphere.naming.CannotInstantiateObjectException: Exception occurred while the JNDI NamingManager was processing a javax.naming.Reference object. [Root exception is java.lang.ExceptionInInitializerError]]
please guide me in resolving the issue?
In general, Pega relies on the underlying app server to provide the JMS functionality. I hope you are not importing the Solace jar files into the Pega database, that will most certainly cause class conflict (if yes, remove those jars from the db - pr_engineclasses table under rules schema). Is this the guide (or something similar) you are following in integrating WAS with Solace: https://solacelabs.github.io/solace-integration-guides/websphere-app-server/