mardi 3 mars 2015

Close RMI connection safely [duplicate]




This question already has an answer here:




how can I close a RMI connection safely and accurately..


For example close the connection of the RMI below..


Thanks



try {
Remote kay = Naming.lookup("rmi://localhost/hey");
Hey u = (Hey) kay;
u.canSaw(que);
} catch(Exception e) {
System.out.println("fail");
}



Aucun commentaire:

Enregistrer un commentaire