如何在服务器端配置 WebSphere MQ 通讯组列表?
有人有为 Websphere MQ v7 配置通讯组列表(将消息发送到一个队列,并将该消息转发到其他几个队列)的经验吗?我想在我的队列管理器上配置它,而不是客户端必须知道要将消息发送到的所有队列。另外,我不想使用主题,因为我希望能够单独管理每个队列。是否有一些配置文件或某种方法可以使用 WebSphere MQ Explorer 来执行此操作?
谢谢
Does anybody have experience with configuring distribution lists (sending a message to one queue, and having that message be forwarded to several other queues) for Websphere MQ v7? I want to configure it on my queue manager, rather than the client having to know all the queues to send the messages to. Also, I would prefer not to use a topic, because I want to be able to manage each queue separately. Is there some configuration file, or some way to use WebSphere MQ Explorer to do this?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用通讯组列表的程序不必从对名称进行硬编码的意义上“知道”它发送到的队列。但它确实必须提供队列名称列表。通常,您可以将它们放入名单中,并让发送程序在那里检索它们。当程序调用
PUT
时,它还必须准备好解析返回代码结构而不是单个 MQRC。但是,您确实应该重新考虑使用主题。您可以为每个目标队列创建管理订阅。这允许您将发布发送到您喜欢的任何本地或远程队列。它还具有能够添加或删除目的地而无需重新启动(或更糟糕的是重新编译)发送应用程序的优点。
您可以使用 WMQ Explorer 来管理名单或管理主题和管理订阅。 topic/subscriptions 方法是纯粹通过配置来实现此目的的唯一方法。要使用通讯组列表,需要专门为此目的设计的程序。
A program that uses a distribution list doesn't have to "know" the queues it sends to in the sense of hard-coding the names. But it does have to supply the list of queue names. Typically you can place these into a namelist and have the sending program retrieve them there. When the program calls
PUT
it must also be prepared to parse a structure of return codes rather than a single MQRC.However, you really should reconsider using a topic. You can create administrative subscriptions for each destination queue. This allows you to send the publications to any local or remote queue that you like. It also have the advantage of being able to add or delete destinations without having to restart - or worse, recompile - the sending application.
You can use WMQ Explorer either to manage a namelist or to manage the topic and administrative subscriptions. The topic/subscriptions method is the only way to do this purely through configuration. To use distribution lists requires a program specifically designed for the purpose.