Prabhu Natarajan [http://community.jboss.org/people/prabhun] replied to the 
discussion

"Need help in configuring JMS with JBoss Messaging in JBoss 4.2.3"

To view the discussion, visit: http://community.jboss.org/message/545310#545310

--------------------------------------------------------------
Hi Ron,

Thanks for your reply.

I did some more analysis.

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.

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.

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

------------------------------------------------------------------------------------------------------------------------------------------------------------------------

2010-05-28 16:15:21,292 ERROR 
*org.jboss.remoting.transport.bisocket.BisocketServerInvoker [] - unable to 
create control connection after 10 retries*
java.net.ConnectException: Connection timed out: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(Unknown Source)
    at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.SocksSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at 
org.jboss.remoting.transport.bisocket.BisocketServerInvoker.createControlConnection(BisocketServerInvoker.java:258)
    at 
org.jboss.remoting.transport.bisocket.BisocketClientInvoker.transport(BisocketClientInvoker.java:407)
    at 
org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
    at org.jboss.remoting.Client.invoke(Client.java:1634)
    at org.jboss.remoting.Client.addCallbackListener(Client.java:1703)
    at org.jboss.remoting.Client.addListener(Client.java:921)
    at 
org.jboss.jms.client.remoting.JMSRemotingConnection.addInvokerCallbackHandler(JMSRemotingConnection.java:259)
    at 
org.jboss.jms.client.remoting.JMSRemotingConnection.start(JMSRemotingConnection.java:375)
    at 
org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$createConnectionDelegate$aop(ClientConnectionFactoryDelegate.java:158)
    at 
org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.invokeNext(ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.java)
    at 
org.jboss.jms.client.container.StateCreationAspect.handleCreateConnectionDelegate(StateCreationAspect.java:81)
    at 
org.jboss.aop.advice.org.jboss.jms.client.container.StateCreationAspect0.invoke(StateCreationAspect0.java)
    at 
org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.invokeNext(ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.java)
    at 
org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.createConnectionDelegate(ClientConnectionFactoryDelegate.java)
    at 
org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:205)
    at 
org.jboss.jms.client.JBossConnectionFactory.createTopicConnection(JBossConnectionFactory.java:115)
    at 
org.jboss.jms.client.JBossConnectionFactory.createTopicConnection(JBossConnectionFactory.java:109)
    at org.jnexus.plugins.jms.JMSTopicClient.subscribe(JMSTopicClient.java:164)
    at org.jnexus.plugins.jms.dom.JMSTopic.performConnect(JMSTopic.java:210)
    at org.jnexus.plugins.jms.dom.JMSTopic.access$000(JMSTopic.java:30)
    at org.jnexus.plugins.jms.dom.JMSTopic$1.run(JMSTopic.java:140)
    at java.lang.Thread.run(Unknown Source)
2010-05-28 16:15:21,479 ERROR org.jnexus.plugins.jms.dom.JMSTopic [] - *JMS: 
Connection to /acme/MyExampleConnectionFactory topic/CyrusWorkstationTopic 
failed.*
org.jboss.jms.exception.MessagingNetworkFailureException
    at 
org.jboss.jms.client.delegate.DelegateSupport.handleThrowable(DelegateSupport.java:245)
    at 
org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$createConnectionDelegate$aop(ClientConnectionFactoryDelegate.java:191)
    at 
org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.invokeNext(ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.java)
    at 
org.jboss.jms.client.container.StateCreationAspect.handleCreateConnectionDelegate(StateCreationAspect.java:81)
    at 
org.jboss.aop.advice.org.jboss.jms.client.container.StateCreationAspect0.invoke(StateCreationAspect0.java)
    at 
org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.invokeNext(ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.java)
    at 
org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.createConnectionDelegate(ClientConnectionFactoryDelegate.java)
    at 
org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:205)
    at 
org.jboss.jms.client.JBossConnectionFactory.createTopicConnection(JBossConnectionFactory.java:115)
    at 
org.jboss.jms.client.JBossConnectionFactory.createTopicConnection(JBossConnectionFactory.java:109)
    at org.jnexus.plugins.jms.JMSTopicClient.subscribe(JMSTopicClient.java:164)
    at org.jnexus.plugins.jms.dom.JMSTopic.performConnect(JMSTopic.java:210)
    at org.jnexus.plugins.jms.dom.JMSTopic.access$000(JMSTopic.java:30)
    at org.jnexus.plugins.jms.dom.JMSTopic$1.run(JMSTopic.java:140)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.net.ConnectException: Connection timed out: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(Unknown Source)
    at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.SocksSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at 
org.jboss.remoting.transport.bisocket.BisocketServerInvoker.createControlConnection(BisocketServerInvoker.java:258)
    at 
org.jboss.remoting.transport.bisocket.BisocketClientInvoker.transport(BisocketClientInvoker.java:407)
    at 
org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
    at org.jboss.remoting.Client.invoke(Client.java:1634)
    at org.jboss.remoting.Client.addCallbackListener(Client.java:1703)
    at org.jboss.remoting.Client.addListener(Client.java:921)
    at 
org.jboss.jms.client.remoting.JMSRemotingConnection.addInvokerCallbackHandler(JMSRemotingConnection.java:259)
    at 
org.jboss.jms.client.remoting.JMSRemotingConnection.start(JMSRemotingConnection.java:375)
    at 
org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$createConnectionDelegate$aop(ClientConnectionFactoryDelegate.java:158)
    ... 13 more

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Also as you have suggested, I removed the entry 'secondaryConnectPort' from the 
remoting-bisocket-service.xml file and kept only the below entry

<attribute name="secondaryBindPort">14000</attribute>

Is any other setting required to avoid this error?

And I think the error which I reported earlier may be due to a firewall between 
my Bangalore box and UK box

Regards,

Prabhu

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/545310#545310]

Start a new discussion in JBoss Remoting at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2050]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to