I am doing a project for a graduate course using Tomcat, Servlets and MySql. I want to use connection pooling for access to database. I have some problems in the connection pooling. I am not looking for a quick fix, but I want to understand the concepts of connection pooling, data source, JNDI, name binding etc,. I'd like to know what is context, IninialContext etc. By understanding these topics I can follow the setup documentation and understand and interpret the error messages.
Can anyone please, explain these things or refer me to some on-line tutorials or books.
Here is part of my code and the error message from invoking the servlet:
Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup("java:comp/env");