I need to implement an RMI server that will become the interface for two other RMI services. Therefore, I decided that the logical task is for the interface to implement the interfaces for the other two services.
public interface FrontEndServer extends Remote, BookServer, StudentServer
{
}
However, there is a method on StudentServer
void addBookToStudent(int studentID, int bookID) throws RemoteException, StudentNotFoundException;
I would also like to FrontEndServerchoose BookNotFoundException, as this service will also check if the book really exists before trying to add details.
Is this possible, or is my design idea completely turned off, and is it really a bad design idea, as if the other interfaces were changing and that’s it? And would I rather write method signatures for all methods inside FrontEndServer?