Java Tutorial - Java Scipt :
Configuring JNDI
Now that the pooling software and the database drivers are installed, we are ready to configure Tomcat so that database connections can be retrieved from the connection pool. The following sections show you how to do this.