<!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">JBoss 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;">
    Jboss messaging client stops if we set client machine timestap to 1 hr back
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/sauravkr">Saurav Kumar</a> in <i>JBoss Messaging</i> - <a href="http://community.jboss.org/message/563734#563734">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Dear All,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>We have client server application based Rich client and Jboss AS. Server components fires events on Topic and clients receives events by implementing messageListener-&gt; onMessage methods</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>We subscribe to events via <span style="color: #2a00ff; font-size: 10pt; ">ClusteredConnectionFactory.</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="font-size: 10pt;"><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p align="left"><span style="color: #0000c0; font-size: 10pt; ">mTopicConnectionFactory</span><span style="font-size: 10pt;"> = (ConnectionFactory) CmsServiceLocator.<em>lookup</em>(CmsServiceLocator.</span><em><span style="color: #0000c0; font-size: 10pt; ">JMS_ConnectionFactory</span><span style="font-size: 10pt;">);</span><span style="font-size: 10pt;"><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p align="left"><span style="color: #0000c0; font-size: 10pt; ">mTopic</span><span style="font-size: 10pt;"> = (Topic) CmsServiceLocator.<em>lookup</em>(</span><em><span style="color: #0000c0; font-size: 10pt; ">_DESTINATION_CMS_PUBLIC_</span><span style="font-size: 10pt;">);</span><span style="font-size: 10pt;"><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p align="left"><span style="color: #0000c0; font-size: 10pt; ">mTopicConnection</span><span style="font-size: 10pt;"> = </span><span style="color: #0000c0; font-size: 10pt; ">mTopicConnectionFactory</span><span style="font-size: 10pt;">.createConnection();</span><span style="font-size: 10pt;"><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p align="left"><span style="color: #3f7f5f; font-size: 10pt; ">// NOTE: Please don't make use of transacted session on client side, as it will lead to accumulation of event objects</span><span style="font-size: 10pt;"><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p align="left"><span style="color: #0000c0; font-size: 10pt; ">mTopicSession</span><span style="font-size: 10pt;"> = </span><span style="color: #0000c0; font-size: 10pt; ">mTopicConnection</span><span style="font-size: 10pt;">.createSession(</span><strong><span style="color: #7f0055; font-size: 10pt; ">false</span><span style="font-size: 10pt;">, Session.</span><em><span style="color: #0000c0; font-size: 10pt; ">SESSION_TRANSACTED</span><span style="font-size: 10pt;">);</span><span style="font-size: 10pt;"><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p align="left"><span style="color: #3f7f5f; font-size: 10pt; ">// Create subscriber</span><span style="font-size: 10pt;"><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p align="left"><span style="color: #0000c0; font-size: 10pt; ">mSubscriber</span><span style="font-size: 10pt;"> = </span><span style="color: #0000c0; font-size: 10pt; ">mTopicSession</span><span style="font-size: 10pt;">.createConsumer(</span><span style="color: #0000c0; font-size: 10pt; ">mTopic</span><span style="font-size: 10pt;">);</span><span style="font-size: 10pt;"><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p align="left"><span style="color: #0000c0; font-size: 10pt; ">mSubscriber</span><span style="font-size: 10pt;">.setMessageListener(</span><strong><span style="color: #7f0055; font-size: 10pt; ">this</span><span style="font-size: 10pt;">);</span><span style="font-size: 10pt;"><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p align="left"><span style="color: #0000c0; font-size: 10pt; ">mTopicConnection</span><span style="font-size: 10pt;">.setExceptionListener(</span><strong><span style="color: #7f0055; font-size: 10pt; ">this</span><span style="font-size: 10pt;">);</span><span style="font-size: 10pt;"><p align="left" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p align="left"><span style="color: #0000c0; font-size: 10pt; ">mTopicConnection</span><span style="font-size: 10pt;">.start();</span></p></span></strong></p></span></strong></p></span></p></span></p></span></em></strong></p></span></p></span></p></span></em></p></span></em></p></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="color: #2a00ff; font-size: 10pt; ">..</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="color: #2a00ff; font-size: 10pt; ">Now, whenever we set system time of client machine to backdate (server date is untouched) we get a log on the server</span></p><p><span style="color: #2a00ff; font-size: 10pt; "><br/>&lt;log4j:event logger="org.jboss.jms.server.connectionmanager.SimpleConnectionManager" timestamp="1285072335095" level="WARN" thread="Timer-14"&gt;<br/>&lt;log4j:message&gt;&lt;![CDATA[A problem has been detected with the connection to remote client abie-3vn1e2-gecoh7dv-1-gecoh7q0-g, jmsClientID=n-7s7hoceg-1-vd7hoceg-2e1nv3-eiba. 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.]]&gt;&lt;/log4j:message&gt;<br/>&lt;/log4j:event&gt;"</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>And client stops listing to client events. No log on the client side.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Can any one guide on it?</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/563734#563734">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Messaging at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2042">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>