Skip to content

Commit

Permalink
Load the JDBC driver first
Browse files Browse the repository at this point in the history
  • Loading branch information
jerqi committed Jan 26, 2025
1 parent d156f23 commit 44cd64e
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,13 @@ public JdbcAuthorizationPlugin(Map<String, String> config) {
dataSource.setTestOnReturn(BaseObjectPoolConfig.DEFAULT_TEST_ON_RETURN);
dataSource.setLifo(BaseObjectPoolConfig.DEFAULT_LIFO);
mappingProvider = new JdbcSecurableObjectMappingProvider();

try (Connection ignored = getConnection()) {
LOG.info("Load the JDBC driver first");
} catch (SQLException se) {
LOG.error("Jdbc authorization plugin exception: ", se);
throw toAuthorizationPluginException(se);
}
}

@Override
Expand Down

0 comments on commit 44cd64e

Please sign in to comment.