首页 > 其他 > 详细

mq的重连设置

时间:2015-11-05 12:01:26      阅读:278      评论:0      收藏:0      [点我收藏+]

maxReconnectAttempts

-1 | 0

From version 5.6 onwards: -1 is default and means retry forever, 0 means don‘t retry (only try connection once but no retry).
Prior to version 5.6: 0 is default and means retry forever.
All versions: If set to >0, then this is the maximum number of reconnect attempts before an error is sent back to the client.

 版本不一样,设置重连的值也不一样,5.6之前的是0代表无限重连,5.6之前的是-1代表重连

http://activemq.apache.org/failover-transport-reference.html

mq的重连设置

原文:http://www.cnblogs.com/wanghongye/p/4938883.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!