Spring Setting Up a JNDI Datasource

Now we are going to configure our project on a server to use the pooled datasource connection that provided by the server. In previous posts http://sourceforopensource.com/spring-querying-using-jdbc-template/ we used apache dbcp database connection pooling. To create a pooled set of connections we could used to connect to our database. When we run a java web app the java application server for example Tomcat will implement some kind of connection pooling for you and how you configure it and how you configure your application to connect to it depends on how you deploy your application and depends on what server you are using what

Read more