Hello, friends:
I have 4 question about the design choice.
1. the security manager, because I do not want dynamic download, so no policy file will be used.
Do I still need the following code in server side?
2. Exception handling I decide to use DataInterface extends remote, both local and remote implements it, so client need to handle RemoteException even in locale mode. It is OK? I think it is same as someone just use Exception in both mode.
3. Book seat I want to put doBook() in Data class or in server side, so do not need to care about if client crash or not, even though I think for this assignment there is no need to handle client crash, becaurse otherwise maybe we have to rollback the transaction
, but in case SUN suddenly test this case, if one client dead when read, modify, the whole server will freeze
of cause put business logic in Data class is not a good idea, but it is clear and simple. in reality put business logic in server side is ok, it that correct?
4 about lockManager I think subclass Data class in remote side that have lock and unlock is similiar with a new class LockManger if not use singleton(I think singleton is not necessary in this case),
Is that ok for me to implement it like this?
Thanks for any help
[ September 02, 2003: Message edited by: mao lao ]