I am running JBoss 3.0.8 on my local machine at home, which I use both as JMS client and JMS server (there are several queues and topics that I have configured). Everything works fine until I start using my second machine which is connected with the first one through a simple LAN connection. Note that the second machine is completely unrelated to the first one - it is NOT a JMS client and is NOT using JMS in any way.
The problem occurs when I turn the second machine off. The JMS server on the first machine seems to go down immediately: first I get messages from OILClientILService that it is "closing receiver connections" on all ports; then SpyJMSSession messages that it is "closing the session and message consumers".
The third party client code that I use to connect to JMS is then trying multiple times to re-connect to the queue using JNDI lookup, but this fails consistently with the javax.naming.CommunicationException and java.net.NoRouteToHostException (JNDI provider is configured as jnp://localhost:1099/).
I am running Windows2000 on both machines and first I thought that the problem might be related to Win2000 allocating IP addresses to machines in LAN dynamically. I tried using static IP addresses but to no avail.
Any help on this matter will be greatly appreciated.
It does sound like you have a strange routing problem.
The NoRouteToHost means it cannot route the packet.
I'd investigate what ip address it is using,
try telnet localhost:1099 (there is an ip embedded in the junk)
and look at the routing table using the route command.