<!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="https://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 1.4.3 GA; cluster node restart problem
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/vineetbadoni">vineet badoni</a> in <i>JBoss Messaging</i> - <a href="https://community.jboss.org/message/772999#772999">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>&#160;&#160;&#160; Hi,</p><p>We are using Jboss 5.1.0 GA cluster which uses Jboss Messaging (1.4.3 GA default version shipped with Jboss 5.1.0 GA). We have a situation after few restarts of the cluster nodes only one node picks up the messages from the Queue.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Details</p><p>- We have 2 nodes cluster let us say Node 1(N1) and Node 2(N2).</p><p>- We have clustered queues deployed on both the nodes N1 and N2.</p><p>- We use clustered XA connection factory to post message in the Queue.</p><p>- We have MDBs which pick up the messages from the Queue.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Our product engine puts the messages in the local queue and Office load balances the messages to the cluster node and failover also work fine.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>After sometime when we restart a cluster nodes one by one then we get into a state when only one node of the cluster(MDB) picks up the&#160; message from the Queue. But we verified that during restart there were no exceptions and errors in the server logs. </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>After googling over web we found this </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><a class="jive-link-external-small" href="https://issues.jboss.org/browse/JBMESSAGING-1931" target="_blank">https://issues.jboss.org/browse/JBMESSAGING-1931</a></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>and which suggests that re-starting the MDB container brings back the MDBs live and they start picking up the messages</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>The problems which we are facing with the proposed solution</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>- This solution does not work for us because we cannot monitor and wait for this state manually and re-start the MDB container. Is there a programmatic way of doing this? Meaning an intelligent way to decide that the system is in such kind of state and we have to restart the MDB containers.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>The bigger problem is we really do not understand what is the reason for this? What is making the cluster to in this state.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Please suggest some clean solution.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Thanks.</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/772999#772999">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Messaging at <a href="https://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>