<!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;">
Re: close jms conection cause block
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/ivannushev">Ivan Nushev</a> in <i>JBoss Messaging</i> - <a href="http://community.jboss.org/message/611357#611357">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 all. Just to add that I succeeded to make remote JMS MessageListeners reliable using sslservlet remoting transport. To achieve this goal I use the remoting servlet configuration packed in JBM 1.4.6.GA.SP1:</p><p><a class="jive-link-external-small" href="http://anonsvn.jboss.org/repos/messaging/tags/JBossMessaging_1_4_6_GA_SP1/integration/AS5/etc/remoting/remoting-servlet-service.xml" target="_blank">http://anonsvn.jboss.org/repos/messaging/tags/JBossMessaging_1_4_6_GA_SP1/integration/AS5/etc/remoting/remoting-servlet-service.xml</a></p><p>plus a few settings for SSL flavour and a JMS Connection' javax.jms.ExceptionListener which recreate the JMS Connection and Topic subscription in case of connection exception. I attach the exact configuration used:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><mbean code="org.jboss.remoting.transport.Connector"</p><p>    name="jboss.remoting:service=connector,transport=sslservlet,target=jms,loc=public"</p><p>    display-name="JMS Public Servlet transport Connector"></p><p>    <attribute name="Configuration"></p><p>        <config></p><p>            <invoker transport="sslservlet"></p><p>                <!-- There should be no reason to change these parameters - warning! </p><p>                    Changing them may stop JBoss Messaging working correctly --></p><p>                <attribute name="marshaller" isParam="true">org.jboss.jms.wireformat.JMSWireFormat</attribute></p><p>                <attribute name="unmarshaller" isParam="true">org.jboss.jms.wireformat.JMSWireFormat</attribute></p><p>                <attribute name="dataType" isParam="true">jms</attribute></p><p>                <attribute name="serverBindAddress">${jboss.bind.address}</attribute></p><p>                <attribute name="serverBindPort">443</attribute></p><p>                <attribute name="clientConnectAddress">${public.firewall.address}</attribute></p><p>                <attribute name="clientConnectPort">443</attribute></p><p>                <attribute name="numberOfCallRetries" isParam="true">1</attribute></p><p>                <attribute name="pingFrequency" isParam="true">214748364</attribute></p><p>                <attribute name="pingWindowFactor" isParam="true">10</attribute></p><p>                <attribute name="onewayThreadPool">org.jboss.jms.server.remoting.DirectThreadPool</attribute></p><p>                <attribute name="callbackStore">org.jboss.remoting.callback.BlockingCallbackStore</attribute></p><p>                <attribute name="unwrapSingletonArrays">true</attribute></p><p>                <attribute name="path">unified-invoker/PublicJmsServerInvokerServlet</attribute></p><p>                <attribute name="return-exception">true</attribute></p><p>                <attribute name="createUniqueObjectName">true</attribute></p><p>                <attribute name="useAllParams" isParam="true">true</attribute></p><p>                <!-- End immutable parameters --></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>                <attribute name="stopLeaseOnFailure" isParam="true">true</attribute></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>                <!-- Periodicity of client pings. Server window by default is twice this figure --></p><p>                <attribute name="clientLeasePeriod" isParam="true">10000</attribute></p><p>                <attribute name="validatorPingPeriod" isParam="true">10000</attribute></p><p>                <attribute name="validatorPingTimeout" isParam="true">5000</attribute></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>                <attribute name="failureDisconnectTimeout" isParam="true">0</attribute></p><p>                <attribute name="callbackErrorsAllowed">1</attribute></p><p>                <attribute name="registerCallbackListener">false</attribute></p><p>                <attribute name="useClientConnectionIdentity" isParam="true">true</p><p>                </attribute></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>                <attribute name="timeout" isParam="true">0</attribute></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>                <!-- Max Number of connections in client pool. This should be significantly </p><p>                    higher than the max number of sessions/consumers you expect --></p><p>                <attribute name="JBM_clientMaxPoolSize" isParam="true">200</attribute></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>                <!-- Set this to true if you want the servlet transport to block waiting </p><p>                    for server->client traffic. Or false if you want it to poll for new traffic </p><p>                    periodically. Recommended is blocking --></p><p>                <attribute name="blockingMode" isParam="true">blocking</attribute></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>                <!-- Timeout for blocking. Only has relevance if blockingMode = blocking --></p><p>                <attribute name="blockingTimeout" isParam="true">30000</attribute></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>                <!-- The periodicity of polling. Only has relevance if blockingMode = nonblocking --></p><p>                <!--attribute name="callbackPollPeriod" isParam="true">10000</attribute --></p><p>            </invoker></p><p>            <handlers></p><p>                <handler subsystem="JMS">org.jboss.jms.server.remoting.JMSServerInvocationHandler</p><p>                </handler></p><p>            </handlers></p><p>        </config></p><p>    </attribute></p><p></mbean></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/611357#611357">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>