activemq桥接转发
程序员文章站
2022-03-07 13:31:18
...
参考了好多资料,下面这两个链接是最靠谱的。
http://manzhizhen.iteye.com/blog/2116920
https://blog.csdn.net/kimmking/article/details/8440150/
要实现桥接,只需要在broker中加上这几行代码,就会自动把队列转到另一个AMQ上面
<networkConnectors>
<networkConnector uri="masterslave:(tcp://192.168.1.200:61616,tcp://192.168.1.201:61616)" userName="admin" password="admin">
<staticallyIncludedDestinations>
<queue physicalName="Test20171201"/>
</staticallyIncludedDestinations>
</networkConnector>
</networkConnectors>
http://manzhizhen.iteye.com/blog/2116920
https://blog.csdn.net/kimmking/article/details/8440150/
要实现桥接,只需要在broker中加上这几行代码,就会自动把队列转到另一个AMQ上面
<networkConnectors>
<networkConnector uri="masterslave:(tcp://192.168.1.200:61616,tcp://192.168.1.201:61616)" userName="admin" password="admin">
<staticallyIncludedDestinations>
<queue physicalName="Test20171201"/>
</staticallyIncludedDestinations>
</networkConnector>
</networkConnectors>