context.xml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <Context>
  3. <WatchedResource>WEB-INF/web.xml</WatchedResource>
  4. <WatchedResource>WEB-INF/tomcat-web.xml</WatchedResource>
  5. <WatchedResource>${catalina.base}/conf/web.xml</WatchedResource>
  6. <!--
  7. <Resource auth="Container"
  8. defaultAutoCommit="false"
  9. description="Label Database"
  10. driverClassName="core.log.jdbc.driver.Mssql2005Driver"
  11. factory="org.apache.tomcat.jdbc.pool.DataSourceFactory"
  12. type="javax.sql.DataSource"
  13. initialSize="1"
  14. maxActive="1"
  15. maxIdle="1"
  16. maxWait="10000"
  17. minIdle="1"
  18. numTestsPerEvictionRun="5"
  19. name="jdbc/tsDs"
  20. url="jdbc:sqlserver://175.117.86.36:1433"
  21. username="fsoft"
  22. password="fsoft"
  23. testWhileIdle="true"
  24. validationInterval="60000"
  25. validationQuery="SELECT 1"
  26. />
  27. -->
  28. <Resource auth="Container"
  29. defaultAutoCommit="false"
  30. description="Label Database"
  31. driverClassName="net.sf.log4jdbc.sql.jdbcapi.DriverSpy"
  32. factory="org.apache.tomcat.jdbc.pool.DataSourceFactory"
  33. type="javax.sql.DataSource"
  34. initialSize="1"
  35. maxActive="1"
  36. maxIdle="1"
  37. maxWait="10000"
  38. minIdle="1"
  39. numTestsPerEvictionRun="5"
  40. name="jdbc/tsDs"
  41. url="jdbc:log4jdbc:sqlserver://175.117.86.36:1433"
  42. username="fsoft"
  43. password="fsoft"
  44. testWhileIdle="true"
  45. validationInterval="60000"
  46. validationQuery="SELECT 1"
  47. />
  48. </Context>