Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private ClientController() throws RemoteException, NotBoundException {
- String hostname = JOptionPane.showInputDialog("Server name?", "localhost");
- Registry registry = LocateRegistry.getRegistry(hostname, RMI_Server.REGISTRY_PORT);
- ICatalogue proxyCatalogue = (ICatalogue)registry.lookup(RMI_Server.REMOTE_OBJECT_NAME);
- catalogue = proxyCatalogue;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement