HornetQ 本地连接永远不会超时

HornetQ local connection never timing out

我的应用程序 运行 在 JBOSS 独立环境中,依赖于 HornetQ (v2.2.5.Final) 中间件在本地应用程序的各个部分之间交换消息环境 - 不通过网络

连接的默认 TTL(生存时间)值为 60000ms, I am thinking of changing that to -1 since, from an operative point of view, I am looking forward to keep sending messages through such connection from time to time (not known in advance). Also, that would prevent issues like jms queue connection failure

问题是:在这种情况下,服务器端的连接从不超时有什么问题?这是一个好的选择吗?如果没有,是否有适合这种情况的策略?

最新版本的 HornetQ 会自动禁用对虚拟机内连接的连接检查,因此如果您手动配置它应该不会有任何问题。