public IMCServidor() throws RemoteException {
try {
Registry registry = LocateRegistry.createRegistry(8000);
registry.bind("IMCService", new IMCImple());
System.out.println("Cliente conectado");
} catch (Exception e) {
e.printStackTrace();
}
}
I wanted to know if they have the server waiting for a client request in rmi. Same as socket.accept (), where lines below the function only execute when the client connects to the server. Because I wanted the message Client connected only to be displayed after the client was executed, because immediately when running the server, even without running the client, it displays the message.