Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Connect to IBM MQ queue

plakhangaonkar
New Contributor II
New Contributor II

Hello,

We have written a custom jar that will be scheduled from Saviynt. The code is reading messages from a queue and creating organization in Saviynt. When I execute standalone jar from command line, it works fine.

We have uploaded this custom jar in Saviynt and created a schedule job. I am getting connection issues to MQ from Saviynt. Is there any documentation around this?

6 REPLIES 6

Dhruv_S
Saviynt Employee
Saviynt Employee

Hi @plakhangaonkar 

Thanks for reaching out to Saviynt forums.

Could you please confirm if you are using Jar connector for achieving the same? 

Please let us know if the JAR connector guide is able to help you.

In addition to this, I would recommend you check EIC logs for identifying the cause of failure. Please share a snippet of the log here if you see any relevant error so that we can provide you further help on that.

Regards,

Dhruv Sharma

rushikeshvartak
All-Star
All-Star

Does java code is working ?  can you add sysout in code and check saviynt logs


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Hi Rushikesh,

I am getting error when connecting to IBM MQ from Saviynt. We have uploaded the jks files in Connector Files. Following is my code snippet:

public static JMSContext initializeMQConnection (String tempKSFilePath) {
LOGGER.info("Entering MQUtil-->initializeMQConnection");
JMSContext jmsContext = null;
try {
System.setProperty("javax.net.ssl.keyStore", "/saviynt_shared/saviynt/ConnectorFiles/XXX.jks");
System.setProperty("javax.net.ssl.keyStorePassword", "XXXX");
System.setProperty("javax.net.ssl.trustStore", "/saviynt_shared/saviynt/ConnectorFiles/XXX.jks");
System.setProperty("javax.net.ssl.trustStorePassword", "XXXXX");
System.setProperty("jdk.tls.client.protocols", "TLSv1.2");
System.setProperty("javax.net.debug", "ssl");
// Create a connection factory
JmsFactoryFactory jmsFF = JmsFactoryFactory.getInstance(WMQConstants.WMQ_PROVIDER);
JmsConnectionFactory jmsCF = jmsFF.createConnectionFactory();
LOGGER.info("Setting properties for connection factory");
// Set the properties

jmsCF.setStringProperty(WMQConstants.WMQ_HOST_NAME, "XXXX");
jmsCF.setIntProperty(WMQConstants.WMQ_PORT, 0000);
jmsCF.setStringProperty(WMQConstants.WMQ_CHANNEL, "XXXX");
jmsCF.setIntProperty(WMQConstants.WMQ_CONNECTION_MODE, WMQConstants.WMQ_CM_CLIENT);
jmsCF.setStringProperty(WMQConstants.WMQ_QUEUE_MANAGER, "XXXX");
jmsCF.setBooleanProperty(WMQConstants.USER_AUTHENTICATION_MQCSP, true);
jmsCF.setStringProperty(WMQConstants.USERID, "XXXX");
jmsCF.setStringProperty(WMQConstants.PASSWORD, "XXXX");
jmsCF.setStringProperty(WMQConstants.WMQ_SSL_CIPHER_SPEC, "TLS_AES_256_GCM_SHA384");
LOGGER.info("Connection factory properties setup is completed");
// Create JMS objects
jmsContext = jmsCF.createContext();
recordSuccess();
}catch (JMSException jmsex) {
LOGGER.log(Level.SEVERE, "An error occured", jmsex);
recordFailure(jmsex);
}catch(Exception e) {
//LOGGER.severe(e.getMessage());
LOGGER.log(Level.SEVERE, "An error occured", e);
}
LOGGER.info("Exiting MQUtil-->initializeMQConnection");
return jmsContext;

}

The error which I am getting on the MQ server is: EXPLANATION:
The conversation cannot begin because a certificate has not been supplied by
the remote partner. 

 

 

 

 

Did you restarted server after uploading jks


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

plakhangaonkar
New Contributor II
New Contributor II

Yes, I did. Even after uploading of custom jar I have restarted the server.

rgupta34
New Contributor
New Contributor

Hi @plakhangaonkar  - were you able to successfully integrate IBM Message Queue to Saviynt? Could you please let me know what all use cases you implemented as I have to integrate this app for my client.

 

Any useful links/documentation will be helpful