Hi Daming,
I have edited your post to put the diagram between [code] and [/code]
UBB tags. Doing this ensures that indenting is preserved, which makes the code easier to read.
When you are writing your post, there are a number of buttons just below the edit pane, which will insert the tags for you, so you don't have to remember what they are.
If you would like to edit your original post so that you can see what I have done, you can click on the
button that is just above
your post.
1.if the design is ok,which method should called in the clientside.
I'm sorry, I don't understand. You've said that you have a factory on the client side, which must be creating an instance of some class or interface. So you're clientside code will be calling that instance won't it?
2.How to handle the Exception(RemoteException,RNFE,SecurityException),is which side.
Both sides can get RemoteException so you need to handle that on both sides.
If you are going with a thick client (all the business logic is done in the client) then you will need to handle the business logic exceptions (RFNE, Security ...) on the client side.
3.I used jdk1.4 logging,If I need write the log into a file
You need to make a design decision (and document it
)
You could have logging set by a command line parameter, which since the examiner will not use any command line parameters (other than the 'server' or 'alone' parameters) will mean that logging is turned off.
Or you could decide to log to a file in the current working directory (then you have to decide whether to overwrite it each time, or append).
Or you could decide to log to standard output.
Or you could even log to a separate log pane in your application (with a possible option to save the log to file).
So many choices
Regards, Andrew