$ Catalina_home / conf / server.xml Debug = "5" reloadable = "true" crossContext = "true"> prefix = "localhost_dbtest_log." suffix = ". txt" TimeStamp = "true" /> Auth = "container" TYPE = "javax.sql.datasource" /> parameter>
Configure your mysqld max_connections large enough to handle All of Your DB Connections. Set to 0 for no limit. -> parameter>
Set to -1 for no limit. See Also The DBCP Documentation on this And The MinevictableIdletimeMillis Configuration Parameter. -> parameter>
IN ms, in this example 10 seconds. An Exception Is Thrown IF THIS TIMEOUT IS EXCEEDED. SET to -1 to wait indefinitely. -> parameter> parameter>
If you want to use tris driver - We Recommend Using Connector / J Though parameter> -> parameter>
The autoreconnect = true argument to the url makess sure what the the URL MAKES SURE THAT MM.MYSQL JDBC Driver Will Automatically Reconnect IF MySQLD CLOSED THE Connection. mysqld by Default Closes iDle Connections After 8 Hours. -> parameter> Resourceparams> Context> Configuration of the application Web-INF / Web.xml 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 " Version = "2.4"> resource-ref> web-app>