Context ctx = new InitialContext();
LocalEmp test = (LocalEmp)ctx.Lookup("/*在此填入local-jndi-name*/");
System.out.println("--::local::--"+test.getDeptno());
LocalEmp test = (LocalEmp)ctx.Lookup("/*在此填入local-jndi-name*/");
System.out.println("--::local::--"+test.getDeptno());
java.util.Iterator it = remote.getLocalUsers().iterator();
while(it.hasNext()){
LocalEmp test = (LocalEmp)it.next();
System.out.println("--::local::--"+test.getDeptno());
}