Permalink
Browse files

autoreconnect to db

  • Loading branch information...
1 parent bda75cb commit 913c70300e3a9e3129d04ff697b62b2559826e01 @calavera committed Aug 12, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 WEB-INF/spring/applicationContext-dataSource.xml
@@ -26,7 +26,7 @@
<!-- DataSource configuration for Apache Commons DBCP. -->
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"
- p:driverClassName="com.mysql.jdbc.Driver" p:url="jdbc:mysql://${production.host}:3306/${production.database}?autoReconnect=${production.reconnect}"
+ p:driverClassName="com.mysql.jdbc.Driver" p:url="jdbc:mysql://${production.host}:3306/${production.database}?autoReconnect=true"
p:username="${production.username}" p:password="${production.password}"/>
<!-- JNDI DataSource for JEE environments -->

0 comments on commit 913c703

Please sign in to comment.