<add key="MQ_MANAGER" value="HBAX013D"/> <add key="MQ_CHANNEL" value="DDS.SVR.CONN.SSL.CHL"/> <add key="MQ_CONNECTION" value="10.10.182.37(1514)"/> <add key="MQ_REPLY" value="DDS.REPLY"/> <add key="MQ_REQUEST" value="GEN.DISPATCHER.REQ"/> <add key="SSL_ALGORITHM" value="RC4_SHA_US"/> <add key="SSL_KEYLOCATION" value="C:\WMQClient\SSL\key12\key"/>
try { if (chkSSLEnbled.Checked == true) { MQEnvironment.SSLCipherSpec = txtCipherSpec.Text; MQEnvironment.SSLKeyRepository = txtKeyRepository.Text; } //WriteLog("writeMessage: Connecting to DDS MQ Manager..", false); txtLog.Text += "btnConnect_Click()-Connecting to MQ Managaer" + Environment.NewLine; objMQQueueManager = new IBM.WMQ.MQQueueManager(txtMqManager.Text, txtMQChannel.Text, txtMqConnection.Text); objMQQueue = objMQQueueManager.AccessQueue(txtMQName.Text, MQC.MQOO_INQUIRE | MQC.MQOO_OUTPUT | MQC.MQOO_FAIL_IF_QUIESCING | MQC.MQOO_SET_IDENTITY_CONTEXT); //WriteLog("writeMessage: Connected to DDS MQ MAnager..", false); txtLog.Text += "btnConnect_Click()-Connected to MQ Manager" + Environment.NewLine; } catch (Exception ex) { txtLog.Text += "btnConnect_Click()-MQ Connectivity Process Failed with Exception: " + ex.Message + Environment.NewLine + " with Inner Exception:" + ex.InnerException + Environment.NewLine + " at Stack Trace: " + ex.StackTrace + Environment.NewLine; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)