private static void initializeGemFireContext() throws NamingException {
  Hashtable table=new Hashtable();
  table.put(Context.INITIAL_CONTEXT_FACTORY,"org.apache.geode.internal.jndi.InitialContextFactoryImpl");
  ctx=new InitialContext(table);
}

private static void initializeGemFireContext ( ) throws NamingException { Hashtable table = new Hashtable ( ) ; table . put ( Context . INITIAL_CONTEXT_FACTORY , "org.apache.geode.internal.jndi.InitialContextFactoryImpl" ) ; ctx = new InitialContext ( table ) ; }
initialises the gemfire context . this is called when no external jndi context is found .
