- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
public static Connection getDBConnectionReader() throws Exception {
Connection conn = null;
try {
conn = enrollmentsDataSource.getConnection();
} catch (SQLException e) {
LOGGER.warn("SQL Exception: get DB connection reader", e);
resetConnectionReader();
try {
conn = enrollmentsDataSource.getConnection();
} catch (SQLException e1) {
throw new Exception("Exception: get DB connection reader", e1);
}
}
return conn;
}