In the MySQL Connector/J 8.0 Developer Guide (JDBC driver for MySQL), I have not found any mention of an implementation for the DataSource
interface in JDBC.
To quote the DataSource
Javadoc:
An alternative to the
DriverManager
facility, aDataSource
object is the preferred means of getting a connection.
So I would expect an implementation to be provided with Connector/J. For example, for this Postgres JDBC driver, I can find the implementation of DataSource
in the class PGSimpleDataSource
, as discussed on Stack Overflow.
➥ Is there no implementation of DataSource
for Connector/J? Or did I miss it?
There is this page, 6.1 Driver/Datasource Class Name. But, despite the title, mentions only the driver class name, not the class name for a DataSource
implementation.