HHH-7348 - AbstractMultiTenantConnectionProvider not closing connections
This commit is contained in:
parent
4b74517dcd
commit
e1062cfa22
|
@ -29,6 +29,9 @@ import java.sql.SQLException;
|
||||||
import org.hibernate.service.UnknownUnwrapTypeException;
|
import org.hibernate.service.UnknownUnwrapTypeException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Basic support for {@link MultiTenantConnectionProvider} implementations using
|
||||||
|
* individual {@link ConnectionProvider} instances per tenant behind the scenes.
|
||||||
|
*
|
||||||
* @author Steve Ebersole
|
* @author Steve Ebersole
|
||||||
*/
|
*/
|
||||||
public abstract class AbstractMultiTenantConnectionProvider implements MultiTenantConnectionProvider {
|
public abstract class AbstractMultiTenantConnectionProvider implements MultiTenantConnectionProvider {
|
||||||
|
@ -52,7 +55,7 @@ public abstract class AbstractMultiTenantConnectionProvider implements MultiTena
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void releaseConnection(String tenantIdentifier, Connection connection) throws SQLException {
|
public void releaseConnection(String tenantIdentifier, Connection connection) throws SQLException {
|
||||||
selectConnectionProvider( tenantIdentifier ).getConnection();
|
selectConnectionProvider( tenantIdentifier ).closeConnection( connection );
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue