| Tuomas Kiviaho, the calls to
extractionContext#getJdbcConnection()
and
extractionContext#getJsbcMetadata()
cache the connection and reuse it, it does not create a new connection each time.
@Override
public Connection getJdbcConnection() {
if ( jdbcConnection == null ) {
try {
jdbcConnection = jdbcConnectionAccess.obtainConnection();
}
catch (SQLException e) {
throw jdbcEnvironment.getSqlExceptionHelper().convert( e, "Unable to obtain JDBC Connection" );
}
}
return jdbcConnection;
}.
SequenceInformationExtractorLegacyImpl
is used by
and a
DatabaseInformationImpl#cleanup()
is always called, causing the
to close the cached connection. So I cannot find connection leak you are talking about. |