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