This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
the insturction said that you should create a client program. This implementation should include a class that implements the same public methods as the suncertify.db.Data class. in server-side, I depoly the db package and the server class which manipulates the Data class(inlcuding DataInfo, FieldInfo). In client-side, I depoly UI class and client class which connect to server and invoke the method of remote object. But in local mode, How should I depoly the package in client-side? Should I deploy the db package on client? if I need to create a class which implement the same public method of Data class, is it need to put Data class on client? Maybe it is wrong of my understanding. Is it means I should create a class which can either connect to server or manipulate the db.db throught Data class in local. pls answer me, Thanks!
Is it means I should create a class which can either connect to server or manipulate the db.db throught Data class in local.
Sort of basically yes. In local mode the client has an instance of the DataClass directly, no connecting to a server. So you will have to have two classes one for Local and one for Remote, in each case they have an instance of Data class within them. There will never be a time when one client is in local and another client is in remote accessing the same db.db/Data files. Mark