<!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;">
Need help in configuring JMS with JBoss Messaging in JBoss 4.2.3
</h3>
<span style="margin-bottom: 10px;">
reply from <a href="http://community.jboss.org/people/prabhun">Prabhu Natarajan</a> in <i>JBoss Remoting</i> - <a href="http://community.jboss.org/message/545310#545310">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 Ron,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Thanks for your reply.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I did some more analysis.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I setup the JBoss server locally in my system and tried conencting with JMSClient. There are no errors and message is posted to server TOPIC.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I forgot to mention that I tested from my client setup in Bangalore, India office and my JBoss server is runing in a solaris box in UK.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>So I setup the client in one of the UK windows box and tried the same execise, now I get a different error as below</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>------------------------------------------------------------------------------------------------------------------------------------------------------------------------</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>2010-05-28 16:15:21,292 ERROR <strong>org.jboss.remoting.transport.bisocket.BisocketServerInvoker [] - unable to create control connection after 10 retries</strong><br/>java.net.ConnectException: Connection timed out: connect<br/>    at java.net.PlainSocketImpl.socketConnect(Native Method)<br/>    at java.net.PlainSocketImpl.doConnect(Unknown Source)<br/>    at java.net.PlainSocketImpl.connectToAddress(Unknown Source)<br/>    at java.net.PlainSocketImpl.connect(Unknown Source)<br/>    at java.net.SocksSocketImpl.connect(Unknown Source)<br/>    at java.net.Socket.connect(Unknown Source)<br/>    at java.net.Socket.connect(Unknown Source)<br/>    at java.net.Socket.<init>(Unknown Source)<br/>    at java.net.Socket.<init>(Unknown Source)<br/>    at org.jboss.remoting.transport.bisocket.BisocketServerInvoker.createControlConnection(BisocketServerInvoker.java:258)<br/>    at org.jboss.remoting.transport.bisocket.BisocketClientInvoker.transport(BisocketClientInvoker.java:407)<br/>    at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)<br/>    at org.jboss.remoting.Client.invoke(Client.java:1634)<br/>    at org.jboss.remoting.Client.addCallbackListener(Client.java:1703)<br/>    at org.jboss.remoting.Client.addListener(Client.java:921)<br/>    at org.jboss.jms.client.remoting.JMSRemotingConnection.addInvokerCallbackHandler(JMSRemotingConnection.java:259)<br/>    at org.jboss.jms.client.remoting.JMSRemotingConnection.start(JMSRemotingConnection.java:375)<br/>    at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$createConnectionDelegate$aop(ClientConnectionFactoryDelegate.java:158)<br/>    at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.invokeNext(ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.java)<br/>    at org.jboss.jms.client.container.StateCreationAspect.handleCreateConnectionDelegate(StateCreationAspect.java:81)<br/>    at org.jboss.aop.advice.org.jboss.jms.client.container.StateCreationAspect0.invoke(StateCreationAspect0.java)<br/>    at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.invokeNext(ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.java)<br/>    at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.createConnectionDelegate(ClientConnectionFactoryDelegate.java)<br/>    at org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:205)<br/>    at org.jboss.jms.client.JBossConnectionFactory.createTopicConnection(JBossConnectionFactory.java:115)<br/>    at org.jboss.jms.client.JBossConnectionFactory.createTopicConnection(JBossConnectionFactory.java:109)<br/>    at org.jnexus.plugins.jms.JMSTopicClient.subscribe(JMSTopicClient.java:164)<br/>    at org.jnexus.plugins.jms.dom.JMSTopic.performConnect(JMSTopic.java:210)<br/>    at org.jnexus.plugins.jms.dom.JMSTopic.access$000(JMSTopic.java:30)<br/>    at org.jnexus.plugins.jms.dom.JMSTopic$1.run(JMSTopic.java:140)<br/>    at java.lang.Thread.run(Unknown Source)<br/>2010-05-28 16:15:21,479 ERROR org.jnexus.plugins.jms.dom.JMSTopic [] - <strong>JMS: Connection to /acme/MyExampleConnectionFactory topic/CyrusWorkstationTopic failed.</strong><br/>org.jboss.jms.exception.MessagingNetworkFailureException<br/>    at org.jboss.jms.client.delegate.DelegateSupport.handleThrowable(DelegateSupport.java:245)<br/>    at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$createConnectionDelegate$aop(ClientConnectionFactoryDelegate.java:191)<br/>    at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.invokeNext(ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.java)<br/>    at org.jboss.jms.client.container.StateCreationAspect.handleCreateConnectionDelegate(StateCreationAspect.java:81)<br/>    at org.jboss.aop.advice.org.jboss.jms.client.container.StateCreationAspect0.invoke(StateCreationAspect0.java)<br/>    at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.invokeNext(ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.java)<br/>    at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.createConnectionDelegate(ClientConnectionFactoryDelegate.java)<br/>    at org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:205)<br/>    at org.jboss.jms.client.JBossConnectionFactory.createTopicConnection(JBossConnectionFactory.java:115)<br/>    at org.jboss.jms.client.JBossConnectionFactory.createTopicConnection(JBossConnectionFactory.java:109)<br/>    at org.jnexus.plugins.jms.JMSTopicClient.subscribe(JMSTopicClient.java:164)<br/>    at org.jnexus.plugins.jms.dom.JMSTopic.performConnect(JMSTopic.java:210)<br/>    at org.jnexus.plugins.jms.dom.JMSTopic.access$000(JMSTopic.java:30)<br/>    at org.jnexus.plugins.jms.dom.JMSTopic$1.run(JMSTopic.java:140)<br/>    at java.lang.Thread.run(Unknown Source)<br/>Caused by: java.net.ConnectException: Connection timed out: connect<br/>    at java.net.PlainSocketImpl.socketConnect(Native Method)<br/>    at java.net.PlainSocketImpl.doConnect(Unknown Source)<br/>    at java.net.PlainSocketImpl.connectToAddress(Unknown Source)<br/>    at java.net.PlainSocketImpl.connect(Unknown Source)<br/>    at java.net.SocksSocketImpl.connect(Unknown Source)<br/>    at java.net.Socket.connect(Unknown Source)<br/>    at java.net.Socket.connect(Unknown Source)<br/>    at java.net.Socket.<init>(Unknown Source)<br/>    at java.net.Socket.<init>(Unknown Source)<br/>    at org.jboss.remoting.transport.bisocket.BisocketServerInvoker.createControlConnection(BisocketServerInvoker.java:258)<br/>    at org.jboss.remoting.transport.bisocket.BisocketClientInvoker.transport(BisocketClientInvoker.java:407)<br/>    at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)<br/>    at org.jboss.remoting.Client.invoke(Client.java:1634)<br/>    at org.jboss.remoting.Client.addCallbackListener(Client.java:1703)<br/>    at org.jboss.remoting.Client.addListener(Client.java:921)<br/>    at org.jboss.jms.client.remoting.JMSRemotingConnection.addInvokerCallbackHandler(JMSRemotingConnection.java:259)<br/>    at org.jboss.jms.client.remoting.JMSRemotingConnection.start(JMSRemotingConnection.java:375)<br/>    at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$createConnectionDelegate$aop(ClientConnectionFactoryDelegate.java:158)<br/>    ... 13 more</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Also as you have suggested, I removed the entry 'secondaryConnectPort' from the remoting-bisocket-service.xml file and kept only the below entry</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><attribute name="secondaryBindPort">14000</attribute></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Is any other setting required to avoid this error?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>And I think the error which I reported earlier may be due to a firewall between my Bangalore box and UK box</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Regards,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Prabhu</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/545310#545310">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>