Professional Documents
Culture Documents
TP2 - SOA - EL AZHAR Asmaa
TP2 - SOA - EL AZHAR Asmaa
TP2 – Corba
Compte rendu
};
};
2. Le Répertoire généré
3. Code du Client .java
char ch = lire_choix();
while(ch != '0') {
switch(ch) {
case '1':
System.out.println(banque.getMontantCompte());
break;
case '2':
banque.crediter(300);
break;
case '3':
banque.debiter(200);
break;
default:
System.out.println("entrez un choix entre 1 et 3");
}
ch = lire_choix();
}
return 0;
}
4. Code du Serveur.java
try {
String ref = orb.object_to_string(unCompte);
System.out.println(ref);
String refFile = "Compte.ref"
}
catch(java.io.IOException ex) {
ex.printStackTrace();
return 1;
}
manager.activate();
orb.run();
return 0;
}