Here is my overall implementation -
DataInterface has all the Data method throws RemoteException
Data class implements DataInterface (for all db.db access), implements the criteriaFind method, 1 db file will refer to one data class (reference kept in a HashMap)
Client side with one DataFactory to return either Data for local access or DataProxy for remote access.
DataProxy (extends unicastobj, implement datainterface) query the DataSessionFactory to get a DataSession which generate a unique Connection for each client and has reference to Data class and lock manager class (one data class has one lock manager class).
Is it okay? Any comment is welcome, Thanks!
wanders