Accessing the Network Server by using a DataSource

The Network Server supports the Network Client driver DataSources org.apache.derby.jdbc.ClientDataSource and org.apache.derby.jdbc.ClientConnectionPoolDataSource on all supported Java SE platforms.

If your client runs on the Java SE 6 platform, and if you want to use DataSource methods specific to the JDBC 4 API, use the DataSources named org.apache.derby.jdbc.ClientDataSource40 and org.apache.derby.jdbc.ClientConnectionPoolDataSource40.

If your client is running on the Java SE 6 platform, all connection objects returned from the DataSource will be JDBC 4 connection objects, whether or not you are using a DataSource whose name ends in "40".