private RMIServer findRMIServerJNDI(String jndiURL,Map<String,?> env,boolean isIiop) throws NamingException {
  InitialContext ctx=new InitialContext(EnvHelp.mapToHashtable(env));
  Object objref=ctx.lookup(jndiURL);
  ctx.close();
  if (isIiop)   return narrowIIOPServer(objref);
 else   return narrowJRMPServer(objref);
}

private RMIServer findRMIServerJNDI ( String jndiURL , Map < String , ? > env , boolean isIiop ) throws NamingException { InitialContext ctx = new InitialContext ( EnvHelp . mapToHashtable ( env ) ) ; Object objref = ctx . lookup ( jndiURL ) ; ctx . close ( ) ; if ( isIiop ) return narrowIIOPServer ( objref ) ; else return narrowJRMPServer ( objref ) ; }
lookup the rmiserver stub in a directory .
