<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Detection failure delay for JMS bisocket connection
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/slimamar">amar slimane</a> in <i>JBoss Remoting</i> - <a href="http://community.jboss.org/message/532989#532989">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Hi,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>We have the same JBoss server (JBAS5.1.0GA) running on two different networks and a JMS client.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>When the server is running on one network and if ethernet cable is pulled at the client side the<br/>failure detection has made approximately 90 seconds after :<br/>javax.jms.JMSException: Failure on underlying remoting connection<br/>    at org.jboss.jms.client.remoting.ConsolidatedRemotingConnectionListener.handleConnectionException(ConsolidatedRemotingConnectionListener.java:102)<br/>    at org.jboss.remoting.ConnectionValidator$1.run(ConnectionValidator.java:744)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>If the server is running on the other network the failure detection has made approximately 5 seconds after.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Why is it different, it's the same server (same configuration) and the same JMS client.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Here is the content of the remoting-bisocket-service.xml file :</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>                           &lt;!-- There should be no reason to change these parameters - warning!                    Changing them may stop JBoss Messaging working correctly <del>&gt;                           &lt;attribute name="marshaller" isParam="true"&gt;org.jboss.jms.wireformat.JMSWireFormat&lt;/attribute&gt;               &lt;attribute name="unmarshaller" isParam="true"&gt;org.jboss.jms.wireformat.JMSWireFormat&lt;/attribute&gt;               &lt;attribute name="dataType" isParam="true"&gt;jms&lt;/attribute&gt;               &lt;attribute name="socket.check_connection" isParam="true"&gt;false&lt;/attribute&gt;                              &lt;attribute name="serverBindAddress"&gt;${jboss.bind.address}&lt;/attribute&gt;               &lt;attribute name="serverBindPort"&gt;${jboss.messaging.connector.bisocket.port:4457}&lt;/attribute&gt;               &lt;attribute name="clientSocketClass" isParam="true"&gt;org.jboss.jms.client.remoting.ClientSocketWrapper&lt;/attribute&gt;               &lt;attribute name="serverSocketClass"&gt;org.jboss.jms.server.remoting.ServerSocketWrapper&lt;/attribute&gt;                        &lt;attribute name="numberOfCallRetries" isParam="true"&gt;1&lt;/attribute&gt;               &lt;attribute name="pingFrequency" isParam="true"&gt;214748364&lt;/attribute&gt;               &lt;attribute name="pingWindowFactor" isParam="true"&gt;10&lt;/attribute&gt;               &lt;attribute name="onewayThreadPool"&gt;org.jboss.jms.server.remoting.DirectThreadPool&lt;/attribute&gt;                              &lt;!</del> End immutable parameters <del>&gt;                              &lt;attribute name="stopLeaseOnFailure" isParam="true"&gt;true&lt;/attribute&gt;                              &lt;!</del> Periodicity of client pings. Server window by default is twice this figure <del>&gt;                                              &lt;attribute name="clientLeasePeriod" isParam="true"&gt;10000&lt;/attribute&gt;               &lt;attribute name="validatorPingPeriod" isParam="true"&gt;60000&lt;/attribute&gt;               &lt;attribute name="validatorPingTimeout" isParam="true"&gt;30000&lt;/attribute&gt;               &lt;attribute name="registerCallbackListener"&gt;false&lt;/attribute&gt;               &lt;!</del> Temps max d'attente lors d'un appel cote client (ms) <del>&gt;               &lt;attribute name="timeout" isParam="true"&gt;0&lt;/attribute&gt;               &lt;!</del> Temps max d'inactivite avant fermeture automatique d'une connexion cote client (ms) <del>&gt;               &lt;attribute name="invokerDestructionDelay" isParam="true"&gt;28800000&lt;/attribute&gt;               &lt;!</del> Number of seconds to wait for a connection in the client pool to become free <del>&gt;               &lt;attribute name="connectionWait" isParam="true"&gt;60&lt;/attribute&gt;               &lt;!</del> Max Number of connections in client pool. This should be significantly higher than                    the max number of sessions/consumers you expect <del>&gt;               &lt;attribute name="JBM_clientMaxPoolSize" isParam="true"&gt;10&lt;/attribute&gt;                              &lt;!</del> The maximum time to wait before timing out on trying to write a message to socket for delivery <del>&gt;               &lt;attribute name="callbackTimeout"&gt;10000&lt;/attribute&gt;                               &lt;!</del> Use these parameters to specify values for binding and connecting control connections to                     work with your firewall/NAT configuration                                             <del>&gt;                             &lt;!</del> Ceci permet de fixer le port pour la connection de controle --&gt;               </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Thanks in advance.</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/532989#532989">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Remoting at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2050">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>