guys,
If you are using 1.4.3.GA, be aware of this
https://jira.jboss.org/browse/JBMESSAGING-1456
if you upgrade, make sure you also upgrade jboss remoting jars and your remoting configuration files.
If you have a firewall sits between your client and server and it is configured to kill some connections idle for a period of time, you need to adjust your remoting configurations, esp those:
<!-- the following parameters are useful when there is a firewall between client and server. Uncomment them if so.-->
<!--
<attribute name="numberOfCallRetries" isParam="true">1</attribute>
<attribute name="pingFrequency" isParam="true">214748364</attribute>
<attribute name="pingWindowFactor" isParam="true">10</attribute>
<attribute name="generalizeSocketException" isParam="true">true</attribute>
-->