Click HERE to see how Saviynt Intelligence is transforming the industry. |
11/20/2023 07:56 AM
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?
11/21/2023 09:27 PM
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
11/21/2023 09:43 PM
Does java code is working ? can you add sysout in code and check saviynt logs
12/19/2023 01:06 PM
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.
12/19/2023 06:43 PM
Did you restarted server after uploading jks
12/19/2023 06:46 PM
Yes, I did. Even after uploading of custom jar I have restarted the server.
02/19/2024 06:47 AM
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