When trying to connect from the deprecated JMS step, to a JMS queue on a remote server, the following error comes up:
javax.jms.JMSException: Failed to connect to the server at tcp://JMSSERVERABC:7222
The error shows that there is a problem to connect the JMS client to the JMS server named JMSSERVERABC on port 7222
Some basic troubleshooting steps to check the network connection:
1) Does the problem occur from different client machines.
2) Is it possible to ping the server:
If yes, is the IP address correct and is the latency not too high.
3) Is it possible to connect to the JMS server listen port with telnet:
telnet JMSSERVERABC 7222
If the server can be accessed but not the specific port then the firewall configuration should be checked.
4) Check if there is a DNS server and if the JMS server is listed correctly:
In this case the problem did not occur when connecting from a client on the same lan as the server. This indicated that the problem was caused by the networking environment.
After reconfiguring the client machines such that they are connected to the working network, the problem was resolved.