IIT Software wrote:
Answer:
It seems that the host "xxxxx" isn't reachable from your client. The router stores the hostname of the router within the connection factory. The client uses it to create a connection then. If the hostname isn't resolvable by DNS, you can't connect.
You can resolve it by 2 ways:
1) Add the router's host "xxxxx" to your DNS or /etc/hosts at your client.
2) Add connectaddress=<ip> to the JMS listener element "plainsocket" in the routerconfig.xml. "ip" is the IP address of the router's host (xxxxx). Subsequent connects will use the IP instead of the hostname
Hi,
Both solutions require the user to explicitly set either the hostname in etc/hosts or the ipaddress in the plainsocket in routerconfig.xml.
Is there a way to avoid setting the ipaddress/ hostname explicitly to be able to connect to the remote router? Is there a way to connect to remote router with just it's ipaddress at hand?
I have made a simple application that connects to a remote router. User enters the ipaddress at runtime. So this means, I will have to set all possible ipaddress and hostnames in the etc/hosts that the user might enter. Please help. Thank you.