Atualizado

This commit is contained in:
Luiz F Picolo 2024-06-07 21:20:03 -04:00
parent ab2c9cec5b
commit 129315f7ba
5 changed files with 1 additions and 3 deletions

View File

@ -10,7 +10,7 @@ public class Cliente {
static int porta = 8898;
public static void main(String[] args) throws Exception {
String objName = "//localhost:" + porta + "/server";
String objName = "//127.0.0.1:" + porta + "/server";
VotacaoInterface votacao = (VotacaoInterface) Naming.lookup(objName);
List<CandidatoImpl> candidatos = votacao.listarCandidatos();

View File

@ -4,9 +4,7 @@ import java.util.List;
import implementacoes.ApuracaoImpl;
import implementacoes.CandidatoImpl;
import implementacoes.VotacaoImpl;
import interfaces.ApuracaoInterface;
import interfaces.VotacaoInterface;
public class ServidorApuracao {