Hi Kerry,
Originally posted by Kerry Friesen:
Also, I'm not sure what to do with the InterruptedException in the lock method.
If you use the
Search facility to search for InterruptedException
you should find a few hints.
I think the consensus is that InterruptedException should not ever occur, since none of the code
you write will ever try to interrupt your waiting threads. That being the case, if you get an InterruptedException, you may as well wrap it in a RuntimeException.
Originally posted by Kerry Friesen:
I'm also having clients share one Data instance
Since you are using Sockets and only using one Data instance, you should be OK using the name of the thread. As Vlad mentioned, this may cause you difficulties (not insurmountable difficulties though) if you use RMI later - but you can worry about that if the customer comes back and asks you to do that enhancement
. You may want to mention it in your design decisions document though.
Originally posted by Kerry Friesen:
I also ... intend on exposing its methods to the client directly - not providing a business layer. Is that considered a fat-client (2-tier implementation)?
Yes - that is fat client / 2 tier implementation.
Regards, Andrew