1) Does server need functionality of Data class like (create, delete operation...).... My server provides only "book" and "strictSearch" methods (as needed to GUI client)....When I search this forum, I found that some people creates DBRemote inteface, that extend Remote, DB... (maybe it need for fat clients??) I'm little bit confused.....Is this ok to implement server with only business methods......
2) Can i use this interface both for local and network mode:
public interface BusinessService {
void bookRoom(int recNo, String owner) throws NoRoomFoundException, RemoteException;
Map<Integer, Room> strictSearch(String[] criteria) throws RemoteException;
}
and
ServiceLocal have implementation of BusinessService's methods, and ignoring RemoteException. ServiceRemote is adapter to ServerLocal (delegate own methods to ServiceLocal methods)....
Or this ugly decision?