This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
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");