perfsonar-dev - [pS-dev] [GEANT/SA2/ps-java-services] r6188 - trunk/perfsonar-java-rrd-ma-SQL_backend/src/main/java/or g/perfsonar/service/measurementArchive/rrdType/storage/sql
Subject: perfsonar development work
List archive
[pS-dev] [GEANT/SA2/ps-java-services] r6188 - trunk/perfsonar-java-rrd-ma-SQL_backend/src/main/java/or g/perfsonar/service/measurementArchive/rrdType/storage/sql
Chronological Thread
- From:
- To:
- Subject: [pS-dev] [GEANT/SA2/ps-java-services] r6188 - trunk/perfsonar-java-rrd-ma-SQL_backend/src/main/java/or g/perfsonar/service/measurementArchive/rrdType/storage/sql
- Date: Wed, 13 Mar 2013 11:49:13 +0000 (GMT)
- Authentication-results: sfpop-ironport04.merit.edu; dkim=neutral (message not signed) header.i=none
Author: dante.delvaux
Date: 2013-03-13 11:49:13 +0000 (Wed, 13 Mar 2013)
New Revision: 6188
Modified:
trunk/perfsonar-java-rrd-ma-SQL_backend/src/main/java/org/perfsonar/service/measurementArchive/rrdType/storage/sql/MysqlMetadataStorageDAOImpl.java
Log:
RRD MA with SQL backend: adding autoReconnect to the JDBC driver config.
Modified:
trunk/perfsonar-java-rrd-ma-SQL_backend/src/main/java/org/perfsonar/service/measurementArchive/rrdType/storage/sql/MysqlMetadataStorageDAOImpl.java
===================================================================
---
trunk/perfsonar-java-rrd-ma-SQL_backend/src/main/java/org/perfsonar/service/measurementArchive/rrdType/storage/sql/MysqlMetadataStorageDAOImpl.java
2013-03-12 18:10:53 UTC (rev 6187)
+++
trunk/perfsonar-java-rrd-ma-SQL_backend/src/main/java/org/perfsonar/service/measurementArchive/rrdType/storage/sql/MysqlMetadataStorageDAOImpl.java
2013-03-13 11:49:13 UTC (rev 6188)
@@ -55,7 +55,8 @@
try {
Map<String, Object> jpaConfig = new HashMap<String, Object>();
jpaConfig.put("javax.persistence.jdbc.driver",
"com.mysql.jdbc.Driver");
- jpaConfig.put("javax.persistence.jdbc.url", dbUri + schema);
+ //FIXME: check if we need '&' or '&'
+ jpaConfig.put("javax.persistence.jdbc.url", dbUri + schema +
"?autoReconnectForPools=true&autoReconnectForPools=true");
jpaConfig.put("javax.persistence.jdbc.user", username);
jpaConfig.put("javax.persistence.jdbc.password", password);
entityManagerFactory =
Persistence.createEntityManagerFactory(PERSISTENCE_UNIT_NAME, jpaConfig);
- [pS-dev] [GEANT/SA2/ps-java-services] r6188 - trunk/perfsonar-java-rrd-ma-SQL_backend/src/main/java/or g/perfsonar/service/measurementArchive/rrdType/storage/sql, svn-noreply, 03/13/2013
Archive powered by MHonArc 2.6.16.