
Context ctx = new InitialContext(); if(ctx==null) { throw new RuntimeException("JNDI Context not Found"); } ds=(DataSource)ctx.lookup(""); if(ds==null) { throw new RuntimeException("DataSource Could not be found"); }
Above is the that i am using.what is the path that i should mention in lookup() method brackets?why is this method used?