【问题标题】:Connection failure to a JMS remote client与 JMS 远程客户端的连接失败
【发布时间】:2015-12-08 14:10:05
【问题描述】:

我正在尝试将消息发送到 JMS 队列,但是我收到此错误:

    13:48:00,686 WARN  [SimpleConnectionManager] A problem has been detected with the connection 
    to remote client 5c4o15e-ymtiah-hy5hsfkr-1-hy5hsg3i-4, jmsClientID=b-k8gsh5yh-1-rkfsh5yh-
    haitmy-e51o4c5. It is possible the client has exited without closing its connection(s) or the 
    network has failed. All associated connection resources will be cleaned up.

关于如何解决此问题的建议之一是将客户端 ping 的周期更改为:

    <attribute name="clientLeasePeriod" isParam="true">20000</attribute>
    <attribute name="validatorPingPeriod" isParam="true">20000</attribute>
    <attribute name="validatorPingTimeout" isParam="true">10000</attribute>

但它仍然没有帮助。 您对如何解决此问题或可能导致与客户端的连接失败有什么建议?

【问题讨论】:

  • 恐怕您需要提供比这更多的信息。您使用的是哪个 JMS 提供程序?您如何尝试连接(代码)? JMS Server 是否由您运行?

标签: client jms jms-topic


【解决方案1】:

确保您已关闭生产者中的 TopicSession 和 TopicConnection 对象,或者在您的情况下是 QueueConnection 和 QueueSession 对象。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-07-26
    • 1970-01-01
    • 1970-01-01
    • 2013-06-21
    • 2012-07-28
    • 2015-04-20
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多