I'm working on a Java webapp that is to be deployed among others on a common servlet container (Tomcat 7 in this case).
That cleanup code deregisters all its registered JDBC drivers (held in a local variable of a custom database connection manager).
But if I call DriverManager.getDrivers() after that, I see that other drivers are still returned.
Is it fine to deregister those aswell, or is that method returning drivers registered by other applications within the same servlet container (Tomcat in this case)?