gpt4 book ai didi

java - 使用 PCFMessageAgent(host, port, channel) 构造函数时如何指定队列管理器?

转载 作者:行者123 更新时间:2023-12-01 20:17:58 33 4
gpt4 key购买 nike

我正在使用 MQ Java PCF API 从 MQ 安装中检索信息。PCFMessageAgent 类有多个构造函数。有一个接受主机端口 channel 名称。我已经展示了文档的摘录。

public PCFMessageAgent(String host,
int port,
String channel)
throws MQException
Initializes a new PCFMessageAgent with a client connection to a queue manager.

我的问题是这将连接到哪个队列管理器?
它是默认队列管理器吗?
如何指定要连接的队列管理器?

最佳答案

只要指定主机和端口,就无需指定队列管理器。您将连接到监听该端口的端口。

更新,来自 IBM 文档:

A server connection channel is a bidirectional MQI channel that is used to connect a IBM WebSphere MQ client to a IBM WebSphere MQ server. The server connection channel is the server end of the channel.

A client connection channel is a bidirectional MQI channel that is used to connect a IBM WebSphere MQ client to a IBM WebSphere MQ server. IBM WebSphere MQ Explorer also uses client connections to connect to remote queue managers. The client connection channel is the client end of the channel. When you create a client-connection channel, a file is created on the computer that hosts the queue manager. You must then, copy the client-connection file to the IBM WebSphere MQ Client computer.

https://www.ibm.com/support/knowledgecenter/en/SSFKSJ_7.5.0/com.ibm.mq.explorer.doc/e_channels.htm

关于java - 使用 PCFMessageAgent(host, port, channel) 构造函数时如何指定队列管理器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45440953/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com