Guest User

Untitled

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