Context env = null;
Hashtable ht = new Hashtable();
ht.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
//ht.put(Context.PROVIDER_URL,"t3://localhost:7001");
try {
env = new InitialContext(ht);
pool = (javax.sql.DataSource) env.lookup ("oracle-8i-athletes");
if (pool == null)
throw new ServletException("'oracle-8i-athletes' is an unknown DataSource");
} catch (NamingException ne) {
throw new ServletException(ne);
}