通过在 RAD 7 中运行的 Websphere 6.1 创建队列时,如何找到队列管理器名称?
我是 Websphere 的新手,在这个客户端站点,我们在旧版本的 RAD 中运行旧版本的 Websphere。我使用 python 脚本来定义队列工厂和一些队列,使用站点上另一个人提供的脚本。但是,脚本中没有提及队列管理器。看来队列已创建,我可以看到它们是在管理控制台中定义的。队列工厂也是如此。但是,管理控制台似乎没有公开队列管理器的名称。
我已经用谷歌搜索了几天,尝试了几个不同的角度,但总是没有答案。似乎有一个名为 MQ Explorer 的工具,但它是 Websphere MQ 附带的,但未安装。这里似乎没有人以前尝试过这样的事情,如果他们尝试过,可能也没有尝试过我想要实现的目标。
理想情况下,我想做的是使用名为 MQ Visual Edit 的第三方工具连接到队列。
I am new to Websphere, and at this client site, we are running an older version of Websphere in an older version of RAD. I used a python script to define a queue factory and some queues, using a script provided by another individual at the site. However, there was not mention of a queue manager in the script. It appears that the queues are created, I can see that they are defined in the Admin Console. Same is true for the queue factory. The admin console does not seem to expose the name of a queue manager, however.
I have been googling for a few days trying several different angles, but always come back to no answer. There seems to be tool called MQ Explorer, but that comes with Websphere MQ, which is not installed. No one here seems to have tried anything like this before, of if they have, may not have attempted what it is I am trying to achieve.
Ideally, what I would like to do would be to connect to the queue with a third party tool called MQ Visual Edit, for example.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这里大约有3或4个问题。让我们看看我能否解决所有问题。
首先,创建管理对象与在队列管理器中定义队列完全分开。通常,WebSphere MQ 管理员定义队列和主题,然后向 WAS 管理员提供主机、端口、通道、QMgr 和队列/主题名称,然后 WAS 管理员生成匹配的连接工厂和队列或主题对象。定义 WAS 对象不会创建相应的 WMQ 对象,甚至也不意味着它们存在。从您的描述来看,听起来好像它们可能没有在 QMgr 上定义。
事实上,从您的描述来看,您使用 MQ 作为传输方式并不明显。如果 WAS 配置为使用它自己的 JMS 实现(系统集成总线或简称 SIBus),那么连接工厂和其他对象可能会指向 SIBus 而不是 WMQ。如果您为 WMQ 创建了 QCF,那么有人应该已经提供了您所请求的详细信息 - QMgr 名称、主机、端口和通道名称。
WMQ Explorer 可免费独立下载,名为 SupportPac MS0T。为了使用它或任何其他第 3 方桌面工具,例如 MQ Visual Edit 或 SupportPac MO72,您将需要知道 QMgr 名称以及主机、端口和通道名称。此外,如果 WMQ 管理员启用了任何安全性,您将需要获得授权才能连接并至少查询 WMQ 对象。 WMQ 管理员将向您提供这些详细信息。假设您拥有 QMgr 详细信息并获得足够的授权,只需下载并安装 SupportPac MS0T 并将其指向 WMQ。有关 WMQ(包括 WMQ Explorer)所有内容的说明位于信息中心页面。由于独立的 WMQ Explorer 是 V7,因此您需要 V7 Infocenter 获取任何资源管理器帮助。如果 QMgr 为 V6,那么您可能需要参考 V6 Infocenter< /a> 也是如此。
这回答了您帖子正文中的问题。标题中的问题 - 我如何找到 QMgr 名称 - 的答案是“询问 WMQ 管理员”。当您获得主机、端口和通道时,您应该获得名称。也就是说,您通常不需要它。如果提供了主机、端口和通道,WMQ 客户端将连接到任何 QMgr。这允许您的客户端应用程序故障转移到不同的 QMgr。像 WMQ Explorer 这样的东西是例外,因为它们不应该进行故障转移。如果您有一个主 QMgr 和一个备份 QMgr,您通常希望 WMQ Explorer 同时看到它们(例如,您可以对它们进行相同的配置),并且如果一个 QMgr 关闭,您希望 Explorer 如此报告。因此,Explorer 需要 QMgr 名称,但大多数应用程序不需要。
There are about 3 or 4 questions here. Let's see if I can address all of them.
First, creating administered objects is completely separate from defining queues in the queue manager. Typically, the WebSphere MQ admin defines the queues and topics, then provides the host, port, channel, QMgr and queue/topic names to the WAS admin who then generates the matching connection factory and queue or topic objects. Defining the WAS objects does not create the corresponding WMQ objects, nor does it even imply that they exist. From your description, it sounds as though they may not have been defined on the QMgr.
In fact, it is not even obvious from your description that you are using MQ as your transport. If WAS is configured to use it's own JMS implementation (System Integration Bus or SIBus for short) then the connection factories and other objects may point to SIBus instead of WMQ. If you created a QCF for WMQ then someone should have already provided the details you are requesting - QMgr name, host, port and channel name.
WMQ Explorer is available as a free, stand-alone download called SupportPac MS0T. In order to use it, or any of the other 3rd party desktop tools such as MQ Visual Edit or SupportPac MO72 you will need to know the QMgr name as well as host, port and channel name. In addition, if the WMQ admin has enabled any security, you will need to be authorized to connect and, at a minimum, inquire on WMQ objects. The WMQ admin will provide these details to you. Assuming you have the QMgr details and are sufficiently authorized, just download and install SupportPac MS0T and point it at WMQ. Instructions on all things WMQ (including WMQ Explorer) are at the Infocenter pages. Since the stand-alone WMQ Explorer is V7 you will want the V7 Infocenter for any Explorer help. If the QMgr is at V6 then you may need to refer to the V6 Infocenter as well.
That answers the questions in the body of your post. The answer to the question in the title - how do I find out the QMgr name - is "ask the WMQ administrator." You should be given the name when you get the host, port and channel. That said, you often do not need it. A WMQ client will connect to any QMgr if provided the host, port and channel. This is what allows your client app to fail over to a different QMgr. Things like WMQ Explorer are the exception because they should not fail over. If you have a primary and backup QMgr, you typically want WMQ Explorer to see them both at the same time (so for example that you can configure them identically) and if one QMgr is down you want Explorer to report it as such. Therefore Explorer requires a QMgr name but most apps do not.