Thanks Vijitha for the reply.What does this mean:
java:comp/env?Anyways..moreover now how will I tell the webapp abt the datasource?Is it in the web.xml smthg like dis:
<res-ref-name>jdbc/raDataSource</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
Also,in which part of my code will I write the code for JNDI lookup?
Thanks
Anuj