如何在两个集群之间设置 WebSphere JMS 主题?

huangapple go评论50阅读模式
英文:

How do I set up a WebSphere JMS topic across two clusters?

问题

在WAS 9.0.5中,我有2个包含2台服务器的集群的单个单元。我想要一个JMS主题,所有4台服务器都可以订阅。目前,我在两个集群中都有单独的总线、主题连接工厂和激活规范,但在一个集群中发布的消息在另一个集群中没有被消耗。

我应该拥有一个单元级别的总线,每个4个服务器作为总线成员吗?还是将这2个集群添加为总线成员?如何正确设置跨多个集群的主题?

英文:

In WAS 9.0.5, I have a single cell of 2 clusters with 2 servers in each. I'd like to have a JMS topic that can be subscribed to by all 4 servers. Currently, I have a separate bus, topic connection factory and activation spec in both clusters, but a message published in one cluster is not consumed in the other cluster.

Should I have a cell level bus with each of the 4 servers as bus members? Or add the 2 clusters as bus members? What's the correct way to set up a topic across multiple clusters?

答案1

得分: 1

你应该为该单元配置一个单一总线。这将使您感兴趣的行为成为可能。主题是由总线而不是单元进行范围限定,所以要使您当前的拓扑结构起作用,您需要设置一个总线之间的链接,但考虑到您都在同一个单元内,这对您的情况来说将会变得不必要复杂。

在一个单元内几乎没有理由拥有多个总线。

英文:

You should configure a single bus for the cell. That would enable the behaviour you are interested in. Topics are scoped by the bus not the cell, so to make your current topology work you would need to set up an inter-bus link, but given you are all in the same cell that would be needlessly complex for your scenario.

There is really little reason to have more than one bus in a cell.

huangapple
  • 本文由 发表于 2023年2月8日 14:10:23
  • 转载请务必保留本文链接:https://go.coder-hub.com/75381949.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定