This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
There are 3 modes expected : server, client, standalone.
When I run my application in server mode, should I provide client facilities (like reserve record, find record etc.), or should I only provide facility to configure, start and stop server?
Also, once a server is started and clients are connected to it, what will happen when server is shut down? How should clients behave? (of course, they won't be able to call any method on remote object, so I guess catching those exceptions might be a good option here).
Anayonkar Shivalkar wrote:should I only provide facility to configure, start and stop server?
Anayonkar Shivalkar wrote:so I guess catching those exceptions might be a good option here).
Yes. You would want to handle the exception in some manner and present and user friendly message to the end user. You might not be able to tell the user that the server is down - but you could provide some sort of generic message.