见代码

 

Server.xml中的配置说明
<Resource name="引用资源的JNDI名" auth="Container" type="javax.sql.DataSource"
 driverClassName="com.pointbase.jdbc.jdbcUniversalDriver(自己的jdbc驱动)"
 url="jdbc:pointbase:server://localhost/acme(数据库连接url)"
 username="root(用户名)" password="root(密码)" maxActive="20(连接池dbcp的相关配置)" maxIdle="10" maxWait="10000"/>

自己的web.xml

<resource-ref>
    <descrtiption>引用资源说明</descrtiption>
    <res-ref-name>引用资源的JNDI名</res-ref-name>
    <res-type>引用资源的类名</res-type>
    <res-auth>管理者(Container)</res-auth><!--Container-容器管理 Application-Web应用管理-->
</resource-ref>