Bonne pratique de DriverManager.deregisterDriver ?
19 Feb
2014
19 Feb
'14
9:39 p.m.
Bonjoir, Dans nos applications, ne devrait-on pas faire : Enumeration<Driver> drivers = DriverManager.getDrivers(); while (drivers.hasMoreElements()) { Driver driver = drivers.nextElement(); try { DriverManager.deregisterDriver(driver); } catch (SQLException e) { } } Pour que tomcat ne dise plus: févr. 19, 2014 10:32:41 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc Grave: The web application [/xxx] registered the JDBC driver [org.h2.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. ? -- Éric Chatellier
4499
Age (days ago)
4499
Last active (days ago)
0 comments
1 participants
participants (1)
-
Eric Chatellier