简体   繁体   English

如何使用IBM WebSphere MQ资源管理器连接到远程队列管理器?

[英]How to Connect to a Remote Queue Manager with IBM WebSphere MQ Explorer?

I create a queue manager like QMTEST in IBM WebSphere MQ Explorer. 我在IBM WebSphere MQ资源管理器中创建了QMTEST之类的队列管理器。 I want to connect to a remote queue manager (remote ip address). 我想连接到远程队列管理器(远程IP地址)。 I followed these steps: 我遵循以下步骤:

  • add remote Queue manager 添加远程队列管理器
  • Queue manager name: QMTEST [Next] 队列管理器名称:QMTEST [下一页]
  • Host Name or ip Address: XXXX(remote ip) [Finish] 主机名或IP地址:XXXX(远程IP)[完成]

But I couldn't connect. 但是我无法连接。 I got this error message 'Could not establish connection to the queue manager-reason 2538.(AMQ4059)'. 我收到此错误消息“无法建立与队列管理器原因2538(AMQ4059)的连接”。 What can I do? 我能做什么?

The four digit number in your error message is an MQRC (MQ Reason Code). 错误消息中的四位数是MQRC(MQ原因码)。 This number gives you more information about what went wrong. 此数字为您提供有关发生问题的更多信息。 You can look it up in Knowledge Center. 您可以在知识中心中查找它。

MQRC_HOST_NOT_AVAILABLE (2538) MQRC_HOST_NOT_AVAILABLE(2538)

There is a list of possible things that could cause this error. 列出了可能导致此错误的所有可能原因。 My guess is it is likely to be the first one, you have not started a listener on the queue manager, since you do not mention doing that in your question details. 我的猜测很可能是第一个,您尚未在队列管理器上启动侦听器,因为您在问题详细信息中没有提及这样做。

You should also read the following link which is some basic details on how to connect to a remote queue manager. 您还应该阅读以下链接,该链接是有关如何连接到远程队列管理器的一些基本详细信息。 You appear to have the MQ Explorer side sorted, but perhaps not the queue manager side. 您似乎对MQ Explorer端进行了排序,但对队列管理器端却未进行排序。

Setting up the server using the command line 使用命令行设置服务器

Please ensure the listener is running on the remote queue manager side. 请确保侦听器正在远程队列管理器端运行。 The default MQ listener port is 1414. If the listener is running then check the queue manager error logs for any connection errors from the MQ explorer. 默认的MQ侦听器端口是1414。如果侦听器正在运行,则检查队列管理器错误日志中是否有来自MQ资源管理器的连接错误。

Are you sure the qmgr and its listener are running and that you have a SYSTEM.ADMIN.SVRCONN channel? 您确定qmgr及其侦听器正在运行,并且您具有SYSTEM.ADMIN.SVRCONN通道吗? That is the server-connection channel used for remote administration of a queue manager. 这是用于队列管理器的远程管理的服务器连接通道。 This technote may be helpful. 技术说明可能会有所帮助。

Is this on a modern Windows or Linux server? 这是在现代Windows或Linux服务器上吗? If so, did you open the port (ie 1414) in the firewall? 如果是这样,您是否在防火墙中打开了端口(即1414)?

Sometimes when we create a Queue manager remote administration objects are not created that's why we get such errors because it is unable to find these objects. 有时,当我们创建队列管理器时,没有创建远程管理对象,这就是为什么我们会收到此类错误的原因,因为它找不到这些对象。 To create them right click on the queue Manager, Select Remote Administration objects and create them and start the listener. 要创建它们,请右键单击队列管理器,选择“远程管理”对象并创建它们,然后启动侦听器。 在此处输入图片说明

I experienced this same error and the queue was configured correctly. 我遇到了同样的错误,并且队列配置正确。 I was using Eclipse and switched to the MQ Explorer setup available from IBM web page. 我正在使用Eclipse,并切换到IBM Web页面上的MQ Explorer设置。 After that, I was totally able to see the queues and everything I was supposed to see. 之后,我完全能够看到队列以及应该看到的所有内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM