What is the difference between Spring DriverManagerDataSource and apache BasicDataSource? Which of them is preferable and in which situations?
Thank you.
From Spring DriverManagerDataSource API:
This class is not an actual connection pool; it does not actually pool Connections. It just serves as simple replacement for a full-blown connection pool, implementing the same standard interface, but creating new Connections on every call.
In other words, it may be OK for tests but in real application use Apache DBCP