码迷,mamicode.com
首页 > 其他好文 > 详细

mq的重连设置

时间:2015-11-05 12:02:25      阅读:173      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!