更新时间:2022-05-05 23:16:24
我通过设置以下env变量来解决这个问题.在连接之前.
I sloved the issue by setting following env varibles. before the connection.
环境变量是MQCHLLIB,MQCHLTAB,MQSSLKEYR-使用Environment.SetEnvironmentVariable-设置值
Env varibles are MQCHLLIB,MQCHLTAB,MQSSLKEYR - use Environment.SetEnvironmentVariable - to set values
<add key="MQ_SSL_CERT_PATH" value="D:\Cert\<nameof KDB with out .kdb>" />
<add key="MQ_CHANNEL_LIB" value="D:\Cert" /> --- Certs location.
<add key="MQ_CHANNEL_TAB" value="xxx.tab" />
<add key="NMQ_MQ_LIB" value="mqic.dll" /> - **Make sure you give the refarance of this DLL**
设置所有这些之后,只需调用queueManager = new MQQueueManager();即可. -你应该很好.
After setting all this just call queueManager = new MQQueueManager(); - You should be good.