JMS load balancing(1 Queue, 2 Queue Connection Factory and 1 .bindings)

流过昼夜 提交于 2019-12-02 08:14:34

Since you mention about load balancing, it would be better to use IBM MQ queue manager clustering instead of using your own code to distribute messages. You will need to put the queue managers in a MQ cluster and define an instance of cluster queue in QM1 and QM2, something like below.

When a message destined to CLUSQ1 arrives on QM Gateway, the queue manager will route the message to other queue manager in the cluster using default round robin method.

Read here for more on MQ Clustering

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!