Hi All,
I am trying to experiement with RMI a little and have come up with a small program to
test, but I need some advice from the group.
Right now, I have created the following:
A server
A local client console
A remote client console
I would like the remote console to only perform 2pcs of the functionality the full local client provides. Part of this functionality is to allow a user to record some information while offline. This is stored in a flat file. When the user is able to get back on the network, I want them to read from the flat file and synchronize the data to a database I've got written.
The question I have is, when main() is called on the client, if the user if offline, a number of exceptions will be thrown. I don't want this since I want to allow a user to work offline until they can synchronize. I've been told that programming by exception is a bad practice, so I would like opinions on how to test to see whether the user is online or not.
Thanks in advance!
kh
[ May 21, 2004: Message edited by: Bob Robertson ]