Фрагмент web.xml для tomcat
< ?xml version="1.0" encoding="UTF-8"? >
< web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" >
...
< resource-ref >
< description >Base Main Database< /description >
< res-ref-name >jdbc/DB< /res-ref-name >
< res-type >javax.sql.DataSource< /res-type >
< res-auth >Container< /res-auth >
< res-sharing-scope >Shareable< /res-sharing-scope >
< /resource-ref >
...
< /web-app >