Hey, Omar: thanks for your comments.
Peter: you made a very good point.
I understand, through the reading of posts in this forum, sun doesn't deduce points for using singleton. But I try to understand how singleton/multiton comes into play in the regime of client/server architecture, given an example of this
scjd project using RMI.
As I understand, when server is up, there will be only one copy of data object. when a client connects, the rmi server just allocates a
thread for the client with an assigned id. As each thread get its own stack, the client will have its own thread and associated stack. I guess at this time, the client's stack would have either a copy of data object or a pointer to the data object. Or are there any other possibility? Which one is the correct operation by rmi?
Thanks for your help.