JBossMessaging JMS subscriber stops getting messages from topic after a while

Solution Unverified - Updated -

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 5.1.1

Issue

I am seeing that my service that subscribe to a JMS topic stops getting messages posted to that topic after some time in which no messages were posted to the topic (I can't quantify precisely this time, but let's say a minute). I am using JBoss-EAP-5.1.1.

Any idea why is that and how to ensure that my subscribers would still be able to get messages even after days that nothing was posted to their topics?

Resolution

Please set "socket.check_connection" attribute to "true" this would force remoting service to validate each socket connection by sending a ping byte before reusing them. This prevents the remoting system from the use of stale socket connections.

<attribute name="socket.check_connection" isParam="true">true</attribute>               

Please adjust pingFrequency and pingWindowFactor as follows :

<attribute name="pingFrequency" isParam="true">300000</attribute>
<attribute name="pingWindowFactor" isParam="true">1</attribute>

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.