diff --git a/Client.class b/Client.class index 2b61dc6..eb3221d 100644 Binary files a/Client.class and b/Client.class differ diff --git a/Client.java b/Client.java index 4966f46..3ed9b25 100644 --- a/Client.java +++ b/Client.java @@ -37,7 +37,7 @@ public static void main(String[] args) { authenticateButton.addActionListener(e -> { try { // Connect to the RMI server - Registry registry = LocateRegistry.getRegistry("localhost"); + Registry registry = LocateRegistry.getRegistry("localhost", 1099); AuthenticationService authService = (AuthenticationService) registry.lookup("AuthenticationService"); if (authService.authenticate(usernameField.getText(), passwordField.getText())) { diff --git a/Server.class b/Server.class index 704d5a5..8bd2d43 100644 Binary files a/Server.class and b/Server.class differ diff --git a/Server.java b/Server.java index 420aaca..afed379 100644 --- a/Server.java +++ b/Server.java @@ -19,7 +19,7 @@ public static void main(String[] args) { ReservationServiceImpl reservationService = new ReservationServiceImpl(); AuthenticationServiceImpl authService = new AuthenticationServiceImpl(); - Registry registry = LocateRegistry.createRegistry(6942); + Registry registry = LocateRegistry.getRegistry("localhost", 1099); registry.bind("AdministrationService", adminService); registry.bind("ReservationService", reservationService); registry.bind("AuthenticationService", authService);