public class context { void main(String args[]){ Context ctx = new InitialContext(); person p=new person("pz"); ctx.rebind("pz",p); Object o = ctx.lookup("pz"); System.out.println(o); } }
public class context { void main(String args[]){ Context ctx = new InitialContext(); person p=new person("pz"); ctx.rebind("pz",p); Object o = ctx.lookup("pz"); System.out.println(o); } }
Naming.rebind("rmi://localhost:1099/GreeterService",p);
void main(String args[]){
Context ctx = new InitialContext();
person p=new person("pz");
ctx.rebind("pz",p);
Object o = ctx.lookup("pz");
System.out.println(o);
}
}
void main(String args[]){
Context ctx = new InitialContext();
person p=new person("pz");
ctx.rebind("pz",p);
Object o = ctx.lookup("pz");
System.out.println(o);
}
}