【问题标题】:IBM MQ .net core nuget amqmdnetstd.dllIBM MQ .net 核心 nuget amqmdnetstd.dll
【发布时间】:2021-09-09 23:06:33
【问题描述】:

如何以及在哪里可以获得 IBM MQ aka amqmdnetstd.dll 的 .net 核心 dll? 有什么 nuget 吗?如何向队列发送消息,尝试访问队列时出现错误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
                           }

【问题讨论】:

    标签: .net-core ibm-mq


    【解决方案1】:

    2 个问题:

    如何以及在哪里可以获得 mqserie aka amqmdnetstd.dll 的 .net 核心 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

    我在尝试访问队列时遇到此 2082 错误

    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

    【讨论】:

      猜你喜欢
      • 2018-07-12
      • 1970-01-01
      • 1970-01-01
      • 2017-08-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-12-14
      相关资源
      最近更新 更多