IBM MQ 传输类型受管工作但客户端不工作

IBM MQ Transport Type Managed Work but Client Does Not Work

我的客户端连接正在使用

MQC.TRANSPORT_PROPERTY = MQC.TRANSPORT_MQSERIES_MANAGED

但不适用于:

MQC.TRANSPORT_PROPERTY = MQC.TRANSPORT_MQSERIES_CLIENT

当我收到此错误时:

return MQRC_FUNCTION_NOT_SUPPORTED for MQC.TRANSPORT_MQSERIES_CLIENT

我想控制提交和回滚,所以我决定更改传输类型,但它不支持。为什么会这样?

我在 .netcore 项目中使用 dll => amqmdnetstd.dll 9.1.2

代码摘要

Hashtable connectionProperties = new Hashtable();
connectionProperties.Add(MQC.TRANSPORT_PROPERTY, MQC.TRANSPORT_MQSERIES_CLIENT);
connectionProperties.Add(MQC.PORT_PROPERTY, "5577");
connectionProperties.Add(MQC.HOST_NAME_PROPERTY, hostName);
connectionProperties.Add(MQC.CHANNEL_PROPERTY, channel);

MQQueueManager qMgr = new MQQueueManager(qManager, connectionProperties);

IBM MQ 类 for .NET Standard 仅支持 TRANSPORT_MQSERIES_MANAGED 模式。

查看 IBM MQ 知识中心页面 IBM MQ 9.1.x>IBM MQ>Developing applications>Developing .NET applications>Getting started with IBM MQ classes for .NET>Installing IBM MQ classes for .NET Standard

IBM MQ classes for .NET Framework and IBM MQ classes for .NET Standard features

The following table lists the features applicable from IBM MQ Version 9.1.1 for IBM MQ classes for .NET Framework and IBM MQ classes for .NET Standard.

Table 1. Differences between IBM MQ classes for .NET Framework and IBM MQ classes for .NET Standard features

Feature         | IBM MQ classes for .NET Framework | IBM MQ classes for .NET Standard
----------------+-----------------------------------+----------------------------------
Transport Modes | Managed, Unmanaged, and Bindings  | Managed

如果您想使用 TRANSPORT_MQSERIES_CLIENT 模式,您需要切换到 amqmdnet.dll,它仅适用于 .NET Framework 并且已由 IBM 稳定,请参阅 IBM MQ 知识中心页面 IBM MQ 9.1.x>IBM MQ>Developing applications>Developing .NET applications>Writing and deploying IBM MQ .NET programs>Using the stand-alone IBM MQ .NET client

From IBM MQ Version 9.1.1, the amqmdnetstd.dll library is available for .NET Standard support on Windows (see Installing IBM MQ classes for .NET Standard. The amqmdnet.dll library is still supplied, but this library is stabilized; that is, no new features will be introduced into it. For any of the latest features you must migrate to the amqmdnetstd.dll library. However, you can continue to use the amqmdnet.dll library on IBM MQ Version 9.1 Long Term Support or Continuous Delivery releases.