1. conf/context.xml:
<Resource name="jdbc/eflow"
auth="Container"
type="javax.sql.DataSource"
driverClassName="oracle.jdbc.driver.OracleDriver"
username="eflow"
password="eflow123"
url="jdbc:oracle:thin:@localhost:1521:orcl"
maxActive="10"
maxIdle="0"
factory="org.apache.commons.dbcp.BasicDataSourceFactory" />
2. web.xml
<resource-ref>
<description>DB Connection</description>
<res-ref-name>jdbc/eflow</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>