public class JdbcLeakPrevention extends Object
WebappClassLoader
to enable it to
deregister JDBC drivers forgotten by the web application. There are some
classloading hacks involved - see WebappClassLoader.clearReferences()
for details - but the short version is do not just create a new instance of
this class with the new keyword.
Since this class is loaded by WebappClassLoader
, it can not refer to
any internal Tomcat classes as that will cause the security manager to
complain.Constructor and Description |
---|
JdbcLeakPrevention() |
public List<String> clearJdbcDriverRegistrations() throws SQLException
SQLException
Copyright © 2021. All rights reserved.