Declare JNDI resource in tomcat's server.xml, using the Tomcat JDBC connection pool:
<GlobalNamingResources>
<Resource name="jdbc/DatabaseName"
factory="org.apache.tomcat.jdbc.pool.DataSourceFactory"
auth="Container"
...