diff --git a/connection-proxool/src/main/java/org/hibernate/connection/ProxoolConnectionProvider.java b/connection-proxool/src/main/java/org/hibernate/connection/ProxoolConnectionProvider.java index 0792a47e75..8fe8eba04d 100644 --- a/connection-proxool/src/main/java/org/hibernate/connection/ProxoolConnectionProvider.java +++ b/connection-proxool/src/main/java/org/hibernate/connection/ProxoolConnectionProvider.java @@ -201,7 +201,7 @@ public class ProxoolConnectionProvider implements ConnectionProvider { // We have created the pool ourselves, so shut it down try { - ProxoolFacade.shutdown(0); + ProxoolFacade.removeConnectionPool(proxoolAlias.substring(PROXOOL_JDBC_STEM.length())); } catch (Exception e) { // If you're closing down the ConnectionProvider chances are an