Hi there,
Suppose I have class Data implements DBMain as the
test requires, then my network server registers an instance of Data.
It seems that all clients will share that single instance of Data. I wonder if there is a way allowing each client to have one instance of Data?
The only way I can think of is to register a DataFactory object and have each client to call its createData() method and get back a Data instance. I do not think it is necessary or even appropriate for JDCert exam.
But I am just wondering if anyone would suggest this approach, i.e., each client has its own Data interface and provide synchronization on its static members.
Thanks.
Yan