应用WebSphere MQ V6构建企业信息总线
配置 MQ cluster
下图为 MQ cluster: BCP_CLUSTER 的示意图:

队列管理器 HQ1.QM 和 HQ2.QM 为该 Cluster 的 Full Repositories,队列管理器 CP1.QM 为 Partial Repository。HQ1.QM 和 HQ2.QM 都安装在 HQ Server 上 ( 一般会安装在不同的 Server 上 ),CP1.QM 安装在 CP1 Server 上 ( 其实还可以有 CP2、CP3……)。
使用 WebSphere MQ Explorer 进行 Cluster 配置具体步骤如下:
在 HQ Server 上创建 Queue Manager:HQ1.QM 和 HQ2.QM
HQ1.QM 的侦听端口配置为 1414,HQ2.QM 的侦听端口配置为 1415
在创建向导上都记得选上 Create server-connection channel, 可以在其他服务器上远程控制它们
在 HQ Server 上创建 Cluster,并指定 Full Repositories
Cluster 名:BCP_CLUSTER
Full Repositories:HQ1.QM 和 HQ2.QM
Cluster Channels:
TO.HQ1.QM connection name:(1414)
TO.HQ2.QM connection name:(1415)
在 CP1 Server 上创建 Queue Manager:CP1.QM
CP1.QM 的侦听端口配置为 1414
同样也选上 Create server-connection channel
在 CP1 Server 上将位于远程的 HQ1.QM 和 HQ2.QM 添加到 QM Explorer 中
HQ1.QM (1414)
HQ2.QM (1415)
在 CP1 Server 上将 CP1.QM 加入 BCP_CLUSTER
BCP_CLUSTER 右键菜单 --> Add Queue Manager to Clusterr
选择 CP1.QM,添加 Partial repository
Cluster Channel:
TO.CP1.QM connection name:(1414)
选择 Full repositories 时将所有两个 Full repositories 都选上
完成 Cluster 配置之后的 MQ Explorer 界面如图:
