Skip to content

Commit

Permalink
Merge pull request #764 from tristantarrant/JGRP-2756/jdbc_driver_cla…
Browse files Browse the repository at this point in the history
…ssloader

JGRP-2756 Look for JDBC drivers in multiple classloaders
  • Loading branch information
belaban authored Jan 29, 2024
2 parents 172adba + 02aa2e3 commit c6339c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/jgroups/protocols/JDBC_PING.java
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ protected void loadDriver() {
return;
log.debug("Registering JDBC Driver named '%s'", connection_driver);
try {
Class.forName(connection_driver);
Util.loadClass(connection_driver, this.getClass().getClassLoader());
} catch (ClassNotFoundException e) {
throw new IllegalArgumentException("JDBC Driver required for JDBC_PING "
+ " protocol could not be loaded: '" + connection_driver + "'");
Expand Down

0 comments on commit c6339c0

Please sign in to comment.