How it works...
Before a Spring MVC application implements Java database transactions, a DataSource must be injected first into the ApplicationContext. This object creates a java.sql.Connection object per user who wants to access a database instance, given the username and password of the server, JDBC URL of the database schema, and the driver class name of the JDBC connector for some database transactions.
The immediate way to implement DataSource is to instantiate the DriverManagerDataSource of the Spring JDBC framework. The only problem with this class is the absence of connection pooling capabilities which slows down the performance of the applications once there is more than one user involved in accessing the database schema. It may ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access