posted 21 years ago
In this code:
try {
HelloImpl obj = new HelloImpl();
// Bind this object instance to the name "HelloServer"
Naming.rebind("//myhost/HelloServer", obj);
System.out.println("HelloServer bound in registry");
} catch (Exception e) {
System.out.println("HelloImpl err: " + e.getMessage());
e.printStackTrace();
}
Are there any difference if i replace the Bind line by "Naming.rebind("HelloServer", obj);"
or "Naming.rebind("rmi://server", obj);" ???
Thanx.