Guest User

Untitled

a guest
Nov 27th, 2018
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1.  
  2.  
  3. <Context>
  4.  
  5. <!-- maxActive: Maximum number of database connections in pool. Make sure you
  6. configure your mysqld max_connections large enough to handle
  7. all of your db connections. Set to -1 for no limit.
  8. -->
  9.  
  10. <!-- maxIdle: Maximum number of idle database connections to retain in pool.
  11. Set to -1 for no limit. See also the DBCP documentation on this
  12. and the minEvictableIdleTimeMillis configuration parameter.
  13. -->
  14.  
  15. <!-- maxWait: Maximum time to wait for a database connection to become available
  16. in ms, in this example 10 seconds. An Exception is thrown if
  17. this timeout is exceeded. Set to -1 to wait indefinitely.
  18. -->
  19.  
  20. <!-- username and password: MySQL username and password for database connections -->
  21.  
  22. <!-- driverClassName: Class name for the old mm.mysql JDBC driver is
  23. org.gjt.mm.mysql.Driver - we recommend using Connector/J though.
  24. Class name for the official MySQL Connector/J driver is com.mysql.jdbc.Driver.
  25. -->
  26.  
  27. <!-- url: The JDBC connection url for connecting to your MySQL database.
  28. -->
  29.  
  30. <Resource name="jdbc/TestDB" auth="Container" type="javax.sql.DataSource"
  31. maxActive="100" maxIdle="30" maxWait="10000"
  32. username="javauser" password="javadude" driverClassName="com.mysql.jdbc.Driver"
  33. url="jdbc:mysql://localhost:3306/javatest"/>
  34.  
  35. </Context>
Add Comment
Please, Sign In to add comment