ActiveMQ JMS TCP传输在重试时逐步更改端口号

时间:2016-03-23 12:43:38

标签: jms activemq

在一些JMS连接问题之后我在日志中注意到了:

o.a.a.b.T.Transport:? - Transport Connection to: tcp://100.100.100.100:61141 failed: java.io.EOFException
o.a.a.b.T.Transport:? - Transport Connection to: tcp://100.100.100.100:61156 failed: java.io.EOFException
o.a.a.b.T.Transport:? - Transport Connection to: tcp://100.100.100.100:61148 failed: java.io.EOFException
o.a.a.b.T.Transport:? - Transport Connection to: tcp://100.100.100.100:61161 failed: java.io.EOFException
o.a.a.b.T.Transport:? - Transport Connection to: tcp://100.100.100.100:61192 failed: java.io.EOFException
o.a.a.b.T.Transport:? - Transport Connection to: tcp://100.100.100.100:61197 failed: java.io.EOFException
o.a.a.b.T.Transport:? - Transport Connection to: tcp://100.100.100.100:61226 failed: java.io.EOFException
o.a.a.b.T.Transport:? - Transport Connection to: tcp://100.100.100.100:61273 failed: java.io.EOFException
o.a.a.b.T.Transport:? - Transport Connection to: tcp://100.100.100.100:61241 failed: java.io.EOFException

为什么JMS会以这种方式重试? ActiveMQ客户端/代理技术是否有任何端口发现/协商协议?

1 个答案:

答案 0 :(得分:0)

ActiveMQ使用IP多播和discovery机制failover。不清楚为什么它重新连接到同一主机,故障转移配置可能具有相同的主机。客户端配置有助于理解。