IBM MQ .net 核心 nuget amqmdnetstd.dll

IBM MQ .net core nuget amqmdnetstd.dll

我如何以及在何处可以获得 IBM MQ aka amqmdnetstd.dll 的 .net 核心 dll? 有什么好处吗?如何向队列发送消息,我在尝试访问队列时遇到错误 2082

queue = mqManager.AccessQueue(queueName, openOptions);
       
          MQQueueManager queueManager = null;
          MQQueue queue=null;
                           try
                           {
                               properties = new Hashtable();
                               properties.Add(MQC.TRANSPORT_PROPERTY, MQC.TRANSPORT_MQSERIES_MANAGED);
                               properties.Add(MQC.HOST_NAME_PROPERTY, queueManagerName);
                               properties.Add(MQC.PORT_PROPERTY, 1414);
                               properties.Add(MQC.CHANNEL_PROPERTY, MQChannel);
                               properties.Add(MQC.USER_ID_PROPERTY, connectionName);
                               properties.Add(MQC.PASSWORD_PROPERTY, "");
               
                                queueManager = new MQQueueManager("MNTSCM01", properties);
                                  quqeue=queueManager .AccessQueue(queueName, openOptions);
               
                           }
                           catch (MQException mqex)
                           {
                               // Console out exception
                           }

2 个问题:

How and where i can get the .net core dll for mqserie aka amqmdnetstd.dll

您需要 MQ 9.1.1 或更高版本,如果您只需要 MQ 客户端功能,您可以下载整个客户端或可再分发的客户端。选择 9.1.1.0-IBM-MQC-Win64 或 9.1.1.0-IBM-MQC-Redist-Win64 https://www-945.ibm.com/support/fixcentral/swg/selectFixes?parent=ibm~WebSphere&product=ibm/WebSphere/WebSphere+MQ&release=9.1.1&platform=All&function=fixId&fixids=9.1.1.0-IBM-MQC-%2A,9.1.1.0-IBM-MQ-Install-Java-All,9.1.1.0-IBM-MQ-Java-InstallRA&useReleaseAsTarget=true&includeSupersedes=1

i am getting errors on this 2082 when tryinh to access the queue

mqrc 2082 显示“2082 0x00000822 MQRC_UNKNOWN_ALIAS_BASE_Q”,即您正在打开一个队列,它是一个别名队列,但它指向的东西不存在。参见 https://www.ibm.com/support/knowledgecenter/en/SSFKSJ_7.5.0/com.ibm.mq.tro.doc/q039210_.htm