Hi All
Background: I have a DataRemote class which are made available on the RMI registry for clients to refer to. A client uses which returns an int clientId and refers to a Data object created for each client, in DataRemote within a HashMap. So a client my invoke a data related method on dataRemote with its clientId to access the data, eg.
A client disconnects from the server by which frees that client's resources.
My question is how to determine when a client has disconnected prematurely, that is without using removeClient, so that DataRemote can free that clients resources? If this isn't done, it could become a ugly memory leak.
Thanx
Jaco Bekker
SCJP 1.4