1. John Paulett
  2. xdat_core_demo

Commits

Tim Olsen  committed 942c3c5

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

  • Participants
  • Parent commits 6a56c37
  • Branches default

Comments (0)

Files changed (1)

File org/nrg/xft/db/DBConfig.java

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