ActiveMQ stop inactivity read check

来源:互联网 发布:富国优化增强债券a b 编辑:程序博客网 时间:2024/06/05 06:02
首先参考:
    http://activemq.apache.org/configuring-wire-formats.html

然后配置:

You can do the following to fix the issues:

1) Append max inactivity duration to your Uri in the format below: wireFormat.maxInactivityDuration=0

2) Use the same Uri at the client side as well as at the server side

Regards,


如果不这样设置,对应的错误会出现:
2008-05-07 09:22:56,343 [org.apache.activemq.ActiveMQConnection]-[WARN] Async exception with no exception listener: org.apache.activemq.transport.InactivityIOException: Channel was inactive for too long: localhost/127.0.0.1:61616
org.apache.activemq.transport.InactivityIOException: Channel was inactive for too long: localhost/127.0.0.1:61616
原创粉丝点击