Can't connect from a remote JMS client: javax.jms.JMSException: error creating socket connection to xxxxx:4001, message: xxxxx

Andreas Mueller

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:

  • Add the router's host "xxxxx" to your DNS or /etc/hosts at your client.
  • 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