From: markt Date: Mon, 25 May 2009 10:18:13 +0000 (+0000) Subject: Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=47235 X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=2c7b2b1b228a850ff900c4439ab9542abba31ccf;p=tomcat7.0 Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=47235 Remove use of auto-reconnect flag from MySQL examples git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@778375 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/jdbc-pool/doc/jdbc-pool.xml b/modules/jdbc-pool/doc/jdbc-pool.xml index a7e01ec16..02083d8f0 100644 --- a/modules/jdbc-pool/doc/jdbc-pool.xml +++ b/modules/jdbc-pool/doc/jdbc-pool.xml @@ -478,7 +478,7 @@ public static void main(String[] args) throws Exception { PoolProperties p = new PoolProperties(); - p.setUrl("jdbc:mysql://localhost:3306/mysql?autoReconnect=true"); + p.setUrl("jdbc:mysql://localhost:3306/mysql"); p.setDriverClassName("com.mysql.jdbc.Driver"); p.setUsername("root"); p.setPassword("password"); @@ -546,7 +546,7 @@ username="root" password="password" driverClassName="com.mysql.jdbc.Driver" - url="jdbc:mysql://localhost:3306/mysql?autoReconnect=true"/> + url="jdbc:mysql://localhost:3306/mysql"/> diff --git a/webapps/docs/jndi-datasource-examples-howto.xml b/webapps/docs/jndi-datasource-examples-howto.xml index c0689aed2..a365aa7ee 100644 --- a/webapps/docs/jndi-datasource-examples-howto.xml +++ b/webapps/docs/jndi-datasource-examples-howto.xml @@ -240,15 +240,12 @@ resource to your Context.

--> <!-- url: The JDBC connection url for connecting to your MySQL dB. - The autoReconnect=true argument to the url makes sure that the - mm.mysql JDBC Driver will automatically reconnect if mysqld closed the - connection. mysqld by default closes idle connections after 8 hours. --> <Resource name="jdbc/TestDB" auth="Container" type="javax.sql.DataSource" maxActive="100" maxIdle="30" maxWait="10000" username="javauser" password="javadude" driverClassName="com.mysql.jdbc.Driver" - url="jdbc:mysql://localhost:3306/javatest?autoReconnect=true"/> + url="jdbc:mysql://localhost:3306/javatest"/> </Context>