V
Volker Raum
Hi everyone,
i am having potential trouble (it maybe becomes trouble)
with RMI Socket Usage and RMI Exceptions.
I coded an RMI server and a client.
I set hard Socket Timeouts using my own Socket Factories, so sometimes Exceptions occur, when the
client calls a servers remote method and the network is in an unfomfortable mood. This is ok, and i
react on it by waiting a bit, trying to lookup the servers remote again and continue my work.
My question is: What propper cleanup do i have to do in a case of exception?
What do i do with the RemoteObject (Proxy) after an exception occured on the client?
Do i have to do anything with the registered Object on the Server?
I ran a netstat on the server.
After the Client got an RMI Timeout Exception, i looked up the ServerRemote in the Registry again
and continued my work.
After doing this for several times, not restarting the server, the server netstat showed more
TCPIP connections than after the first lookup of the client.
Even after i gave the server some time( 1 hour), the TCPIP connections remained.
After Terminating the client some connections are removed, some remain and i think the number of
connections still present is equal to the number of the clients reconnects after an exception.
=> Do Sockets (Connections) get spoiled here?
Any ideas, knowledge here?
thanx,
Volka
i am having potential trouble (it maybe becomes trouble)
with RMI Socket Usage and RMI Exceptions.
I coded an RMI server and a client.
I set hard Socket Timeouts using my own Socket Factories, so sometimes Exceptions occur, when the
client calls a servers remote method and the network is in an unfomfortable mood. This is ok, and i
react on it by waiting a bit, trying to lookup the servers remote again and continue my work.
My question is: What propper cleanup do i have to do in a case of exception?
What do i do with the RemoteObject (Proxy) after an exception occured on the client?
Do i have to do anything with the registered Object on the Server?
I ran a netstat on the server.
After the Client got an RMI Timeout Exception, i looked up the ServerRemote in the Registry again
and continued my work.
After doing this for several times, not restarting the server, the server netstat showed more
TCPIP connections than after the first lookup of the client.
Even after i gave the server some time( 1 hour), the TCPIP connections remained.
After Terminating the client some connections are removed, some remain and i think the number of
connections still present is equal to the number of the clients reconnects after an exception.
=> Do Sockets (Connections) get spoiled here?
Any ideas, knowledge here?
thanx,
Volka