DriverManager.
-------------------------------
- hampers the application performance as the connections are created/closed in java classes.
- does not support connection pooling.
DataSource
-------------------------------
- improves application performance as connections are not created/closed within a class, they are managed by the application server and can be fetched while at runtime.
- it provides a facility creating a pool of connections
- helpful for enterprise applications
Abonohu te:
Posto komente (Atom)
Nuk ka komente:
Posto një koment