WMQ Pub/Sub 主题到队列桥

发布于 2024-10-11 17:39:18 字数 315 浏览 4 评论 0原文

在其他队列管理器中,可以在队列和主题之间设置桥梁,以便发布者和订阅者不需要知道他们正在使用主题:

TIBCO EMS

创建桥源=队列:QName 目标=主题:TName
创建桥梁 源=主题:TName 目标=队列:QName

如何在 WMQ 中执行此操作?

In other queue managers it is possible to setup a bridge between a queue to a topic so that publishers and subscribers does not need to know that they are using a topic:

Example in TIBCO EMS

create Bridge source=queue:QName
target=topic:TName
create Bridge
source=topic:TName target=queue:QName

How do I do this in WMQ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

╰◇生如夏花灿烂 2024-10-18 17:39:18

请参阅 WebSphere MQ V7.0 功能和增强功能第 47 页,它提到使用别名队列和管理订阅

WebSphere MQ V7.0 引入了
别名队列对象的扩展
这使得它可以被解析为
新的主题对象。这对于
迁移点对点消息传递
发布/订阅应用程序
模型。传统的点对点
将消息放入的应用程序
WebSphere MQ 可以作为
发布者没有任何代码更改
利用别名队列来解析
到主题对象。这是实施的
通过定义主题进行管理
映射到适当的对象
消息所在的主题字符串
待发布。原来当地的
队列被删除并替换为
同名的别名队列
解析为主题对象。还
请注意,点对点应用程序
从 WebSphere MQ 获取消息
可以作为订户操作,无需
通过定义任何代码更改
行政订阅
话题。

第 220 页的示例 9.3 显示了如何设置从主题到目标队列的管理订阅

DEFINE SUB(SUB.RETAIL.CAT) TOPICOBJ(MATT.RETAIL.CAT) DESTCLAS(MANAGED)
DEFINE SUB(SUB.MATTRETCAT) TOPICSTR(‘matt/retail/cat’) DESTCLAS(MANAGED)
DEFINE SUB(SUB.PROVCAT) TOPICSTR(‘matt/retail/cat’) DEST(SUB.PROVCAT.DESTQ)

See WebSphere MQ V7.0 Features and Enhancements page 47, it mentions the use of Alias queues and administrative subscriptions

WebSphere MQ V7.0 introduces an
extension to the alias queue object
that allows it to be resolved to the
new topic object. This is useful for
migrating point-to-point messaging
applications to the Publish/Subscribe
model. A traditional point-to-point
application that puts messages into
WebSphere MQ can operate as a
publisher without any code changes by
utilizing an alias queue that resolves
to a topic object. This is implemented
administratively by defining a topic
object that maps to an appropriate
topic string on which the messages are
to be published. The original local
queue is deleted and replaced by an
alias queue of the same name that
resolves to the topic object. Also
note that a point-to-point application
that gets messages from WebSphere MQ
can operate as a subscriber without
any code changes by defining an
administrative subscription to a
topic.

Example 9.3 on page 220 shows how to setup a administrative subscription from a Topic to a destination queue

DEFINE SUB(SUB.RETAIL.CAT) TOPICOBJ(MATT.RETAIL.CAT) DESTCLAS(MANAGED)
DEFINE SUB(SUB.MATTRETCAT) TOPICSTR(‘matt/retail/cat’) DESTCLAS(MANAGED)
DEFINE SUB(SUB.PROVCAT) TOPICSTR(‘matt/retail/cat’) DEST(SUB.PROVCAT.DESTQ)
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文