LuckyStarr
Programmer
Hi All,
I have a RMI server and client running in the same machine. They can connect normally, just using the 'localhost' address as the RMI address for retrieving the remote objects.
The problem occurs when the network goes down (more specifically, when I unplug the ethernet cable from the computer): the RMI connection between the server and the client is lost.
The question is: why is this happening? Shoudn't the RMI connection remain OK, even after the network goes down? After all, the server and clilent are in the same computer, same IP! I'm using the loop back address (127.0.0.1) to start the RMI connection, not the machine IP.
There is also a strange fact: when I run the server and client with the ethernet cable previously unplugged, no RMI connection problem occurs!
Scenario 1:
1- unplug the ethernet cable
2- run the server and client on same machine
3- connection OK
Scenario 2:
1- run the server and client on same machine
2- unplug the ethernet cable
3- connection PROBLEM
I don't understand. What could be happening?
Could you help me? I would be very grateful, you can save lots of work hours for me.
Ricardo.
"There is no Knowledge that is not power"
I have a RMI server and client running in the same machine. They can connect normally, just using the 'localhost' address as the RMI address for retrieving the remote objects.
The problem occurs when the network goes down (more specifically, when I unplug the ethernet cable from the computer): the RMI connection between the server and the client is lost.
The question is: why is this happening? Shoudn't the RMI connection remain OK, even after the network goes down? After all, the server and clilent are in the same computer, same IP! I'm using the loop back address (127.0.0.1) to start the RMI connection, not the machine IP.
There is also a strange fact: when I run the server and client with the ethernet cable previously unplugged, no RMI connection problem occurs!
Scenario 1:
1- unplug the ethernet cable
2- run the server and client on same machine
3- connection OK
Scenario 2:
1- run the server and client on same machine
2- unplug the ethernet cable
3- connection PROBLEM
I don't understand. What could be happening?
Could you help me? I would be very grateful, you can save lots of work hours for me.
Ricardo.
"There is no Knowledge that is not power"