且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

网络故障后重新连接到ActiveMQ服务器

更新时间:2022-05-24 01:44:11

听起来像故障转移绝对是您要使用的东西.您无需故障转移到另一个代理-URI只是指示客户端库重新连接,因此您可以执行以下操作:

It sounds like failover is definitely the thing that you want to use. You don't need to failover to another broker - the URI simply instructs the client library to reconnect, so you can do something like:

failover:(tcp://myBroker:61616)