I am trying to understand the DVDConnector class in the SCJD Exam book. I think the static method getRemote() would be used by the (GUI) client to connect to the (database) server.
What I don't understand is the inclusion of the line RegDVDDatabase.register() inside this method which is called by the client. It seems that this would start up the RMI registry. But, is it desirable to start up the RMI registry on the client machine (assuming the client and server are on separate machines)? I would think that you only want to start up the RMI registry on the server machine.
Does this sound right?
What I don't understand is the inclusion of the line RegDVDDatabase.register() inside this method which is called by the client. It seems that this would start up the RMI registry. But, is it desirable to start up the RMI registry on the client machine (assuming the client and server are on separate machines)? I would think that you only want to start up the RMI registry on the server machine.
Does this sound right?