JMS远程客户端连接失败

时间:2014-07-28 08:17:25

标签: client jms jms-topic

我正在尝试将消息发送到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>

但它仍然无济于事。 您对如何解决此问题或可能导致客户端连接失败的问题有任何建议吗?

1 个答案:

答案 0 :(得分:0)

确保已关闭生产者中的TopicSession和TopicConnection对象,或者已关闭QueueConnection和QueueSession对象。