I'm developing the assignment with a RMI server. My question is, how do you handle the RemoteException's on the clients (for example the network fails)? Do you show an error window an exit the application? do you try to reconnect? do you log it and ignore it? What do you think is expected about this by the examinees?
Iván Párraga García
SCWCD 5, SCJD, SCJP 5, MySQL 5 DBA
posted 8 years ago
I'm showing an error dialog, but I don't close down the client.
It depends on what your 'business' requirement is and also what causes the RemoteException! As a general case though I'd expect the client to log the error to the user and return to a state where it can continue doing what ever it is doing. An advanced version of a client might offer to retry the operation.