Browse files

HHH-7348 - AbstractMultiTenantConnectionProvider not closing connections

  • Loading branch information...
1 parent 4b74517 commit e1062cfa2262104dd7b567ddf420994d6ce01dfd @sebersole sebersole committed May 23, 2012
View
5 ...ava/org/hibernate/service/jdbc/connections/spi/AbstractMultiTenantConnectionProvider.java
@@ -29,6 +29,9 @@
import org.hibernate.service.UnknownUnwrapTypeException;
/**
+ * Basic support for {@link MultiTenantConnectionProvider} implementations using
+ * individual {@link ConnectionProvider} instances per tenant behind the scenes.
+ *
* @author Steve Ebersole
*/
public abstract class AbstractMultiTenantConnectionProvider implements MultiTenantConnectionProvider {
@@ -52,7 +55,7 @@ public Connection getConnection(String tenantIdentifier) throws SQLException {
@Override
public void releaseConnection(String tenantIdentifier, Connection connection) throws SQLException {
- selectConnectionProvider( tenantIdentifier ).getConnection();
+ selectConnectionProvider( tenantIdentifier ).closeConnection( connection );
}
@Override

0 comments on commit e1062cf

Please sign in to comment.