From: <cb...@fr...> - 2004-02-25 15:56:25
|
In our development process we didn't encounter any problem with the implementation of our queues or topics=85 but now I must deploy my = application in the real world and I left my LAN. I cannot contact my OpenJms server; I received the following error = message: INFO [main] jms.ContextHelper - [JMS URL] Connection to JNDI: tcp://212.68.180.112:3035/=20 INFO [main] jms.SubscriberTest - [FACTORY INIT] Factory ok ERROR [main] jms.SubscriberTest - [CONNECTION] Try to connect to topic (factory.createTopicConnection)=85 the exception is: javax.jms.JMSException: Failed to locate server, url=3Drmi://192.168.123.2:1099/OpenJMSServer: Connection refused to = host: 192.168.123.2; nested exception is: java.net.ConnectException: Connection timed out: connect at org.exolab.jms.client.rmi.RmiJmsServerStub.getDelegate(RmiJmsServerStub.j= ava :144) at org.exolab.jms.client.rmi.RmiJmsServerStub.createConnection(RmiJmsServerS= tub .java:169) at org.exolab.jms.client.JmsConnection.<init>(JmsConnection.java:189) at org.exolab.jms.client.JmsTopicConnection.<init>(JmsTopicConnection.java:8= 1) at org.exolab.jms.client.JmsTopicConnectionFactory.createTopicConnection(Jms= Top icConnectionFactory.java:113) at org.exolab.jms.client.JmsTopicConn... As you can discover, I used the IP address of my network entry point 212.68.180.112 (a Asante Router) and behind that I have a server (linux = red hat9) with the IP address 192.168.123.2. I opened the ports 3035 and 3030 on my router and forwaded them to my = local machine. Inside my network, the application work fine=85 Here is my config file I use: <!-- Optional. This represents the default configuration --> <ServerConfiguration host=3D"192.168.123.2" embeddedJNDI=3D"true" /> =09 <TcpConfiguration internalHost=3D"212.68.180.112" port=3D"3030" jndiPort=3D"3035" /> =20 <!-- Required when using an RMI and TCP connector --> <Connectors> <Connector scheme=3D"tcp"> <ConnectionFactories> <QueueConnectionFactory name=3D"JmsQueueConnectionFactory" /> <TopicConnectionFactory name=3D"JmsTopicConnectionFactory" /> </ConnectionFactories> </Connector> <Connector scheme=3D"rmi"> <ConnectionFactories> <QueueConnectionFactory name=3D"JmsQueueConnectionFactory" /> <TopicConnectionFactory name=3D"JmsTopicConnectionFactory" /> </ConnectionFactories> </Connector> </Connectors> Like that my Jms server start fine. When I switch the IP address, it = didn't start and I receive the following stack trace: org.exolab.jms.server.ServerException: java.rmi.ConnectException: = Connection refused to host: 212.68.202.120; nested exception is: java.net.ConnectException: Connection timed out at = sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:567) at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185) at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171) at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:313) at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source) at java.rmi.Naming.rebind(Naming.java:160) at org.exolab.jms.server.rmi.RmiJmsServer.init(RmiJmsServer.java:121) at = org.exolab.jms.server.JmsServer.initConnector(JmsServer.java:369) at org.exolab.jms.server.JmsServer.initConnectors(JmsServer.java:323) at org.exolab.jms.server.JmsServer.init(JmsServer.java:199) at org.exolab.jms.server.JmsServer.main(JmsServer.java:231) Caused by: java.net.ConnectException: Connection timed out at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at java.net.Socket.connect(Socket.java:452) at java.net.Socket.connect(Socket.java:402) at java.net.Socket.<init>(Socket.java:309) at java.net.Socket.<init>(Socket.java:124) at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSock= etF actory.java:22) at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSock= etF actory.java:128) at = sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:562) ... 10 more =20 Any idea to help me? I supose that it is a typical error; but I didn't find an issue=85 Thanks in advance from Belgium Cedric |