Skip to content

Commit

Permalink
IT WORKS
Browse files Browse the repository at this point in the history
  • Loading branch information
NailNilo committed Jan 2, 2024
1 parent 940dd9a commit 049f114
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
Binary file modified Client.class
Binary file not shown.
2 changes: 1 addition & 1 deletion Client.java
Original file line number Diff line number Diff line change
Expand Up @@ -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())) {
Expand Down
Binary file modified Server.class
Binary file not shown.
2 changes: 1 addition & 1 deletion Server.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 049f114

Please sign in to comment.