Commits

Tim Olsen committed 942c3c5

Add a validation query to identify stale or broken PostgreSQL connections.

Comments (0)

Files changed (1)

org/nrg/xft/db/DBConfig.java

 			ds.setPassword(pass);
 			ds.setUrl(url);
 			ds.setMaxActive(maxConnections);
+			ds.setValidationQuery("SELECT NOW();");
 			dataSource = ds;
 		}
 		return dataSource.getConnection();