<!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;">
Re: JBoss auto reconnect issue with Websphere MQ
</h3>
<span style="margin-bottom: 10px;">
created by <a href="https://community.jboss.org/people/forum.khan">forum khan</a> in <i>JBoss ESB Development</i> - <a href="https://community.jboss.org/message/746896#746896">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p><span style="font-family: trebuchet ms,geneva; color: #16087a; font-size: 11pt;">The issue was due to improper packaging of .rar file [<span style="color: #ff0000;">Caused by: java.util.zip.ZipException: error in opening zip file</span>]</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"><span style="font-family: trebuchet ms,geneva;"> </span> </p><p><span style="font-family: trebuchet ms,geneva; color: #16087a; font-size: 11pt;">By modifying the properties reconnectionRetryCount = 5 and reconnectionRetryInterval = 300000 in file “wmq.jmsra.rar\META-INF\ra.xml” I was able to resolve the defect.</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-family: trebuchet ms,geneva; color: #16087a; font-size: 11pt;">   In order to test the scenario I had set reconnectionRetryInterval = 60000 (1 min) and kept reconnectionRetryCount = 5 attempts only.  I was able to process the messages successfully. On shutting down the MQ and waiting for 5 mins then I found that messages were not processed even after starting MQ. As per the below link it’s clearly mentioned that If all attempts fail to connect MQ, delivery is stopped permanently until the MDBs are restarted manually. </span></p><p><span style="font-family: trebuchet ms,geneva; color: #16087a; font-size: 11pt;"><a class="jive-link-external-small" href="http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp?topic=%2Fcom.ibm.mq.csqzaw.doc%2Fjm40190_.htm">http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp?topic=%2Fcom.ibm.mq.csqzaw.doc%2Fjm40190_.htm</a></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-family: trebuchet ms,geneva;"><a class="jive-link-external-small" href="http://www.ibm.com/developerworks/websphere/library/techarticles/0710_ritchie/0710_ritchie.html">http://www.ibm.com/developerworks/websphere/library/techarticles/0710_ritchie/0710_ritchie.html</a></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"><span style="font-family: trebuchet ms,geneva;"> </span> </p><p><strong style="color: #16087a; font-size: 11pt; font-family: trebuchet ms,geneva;">Observation:</strong></p><p><span style="font-family: trebuchet ms,geneva; color: #16087a; font-size: 11pt;">   Let us assume that MQ will be down only for a period of 1 hour at any point of time, then the values will be reconnectionRetryCount = 12 and reconnectionRetryInterval = 300000 (5 mins) so that the jboss server continues to try connecting to MQ for every 5 mins upto 12 attempts ( Which also means the server will stop pinging MQ after 1 hour having tried to ping for 12 attempts). This is only applicable if the MQ goes down only for 1 hour, else the properties may have to be changed accordingly.</span></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/746896#746896">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss ESB Development at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2032">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>