diff --git a/hibernate-proxool/src/main/java/org/hibernate/service/jdbc/connections/internal/ProxoolConnectionProvider.java b/hibernate-proxool/src/main/java/org/hibernate/service/jdbc/connections/internal/ProxoolConnectionProvider.java index bad85f36d2..63d092ddc8 100644 --- a/hibernate-proxool/src/main/java/org/hibernate/service/jdbc/connections/internal/ProxoolConnectionProvider.java +++ b/hibernate-proxool/src/main/java/org/hibernate/service/jdbc/connections/internal/ProxoolConnectionProvider.java @@ -202,7 +202,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