Posted By

vasilije on 01/26/09


Tagged

mysql java JSP tomcat


Versions (?)

tomcat mysql jndi connection pool


 / Published in: XML
 

  1. <!-- META-INF/context.xml -->
  2. <?xml version="1.0" encoding="UTF-8"?>
  3. <Context path="Products">
  4. <Resource auth="Container" driverClassName="com.mysql.jdbc.Driver" maxActive="100" maxIdle="30" maxWait="10000" name="jdbc/ProductData" password="developer" type="javax.sql.DataSource" url="jdbc:mysql://localhost:3306/product_entry?autoReconnect=true" username="developer"/>
  5. </Context>
  6.  
  7. <!-- WEB-INF/web.xml -->
  8. <resource-ref>
  9. <description>Database for IFPWAFCAD application</description>
  10. <res-ref-name>jdbc/ProductData</res-ref-name>
  11. <res-type>javax.sql.DataSource</res-type>
  12. <res-auth>Container</res-auth>
  13. <res-sharing-scope>Shareable</res-sharing-scope>
  14. </resource-ref>

Report this snippet  

You need to login to post a comment.