JDBC data sources are implemented using the class com.ddtek.OpenAccess.jdbcx.datasource.OpenAccessDataSource. This single data source implementation implements the following interfaces defined in the JDBC 2.0 Optional Package:
• javax.sql.DataSource
• javax.sql.ConnectionPoolDataSource
The OpenAccessDataSource implementation implements both the java.io.Serializable and javax.naming.Referenceable interfaces. The interface that is used depends on the service provider you are using and how the OpenAccessDataSource object is saved in your JNDI environment.
Your JDBC Client installation contains the following examples that show how to create and use JDBC data sources:
• JNDI_LDAP_Example.java. Use this example to create a JDBC data source and save it in your LDAP directory, using the JNDI Provider for LDAP.
• JNDI_FILESYSTEM_Example.java. Use this example to create a JDBC data source and save it in your local file system, using the File System JNDI Provider.
Note: You must include the javax.sql.* and javax.naming.* classes to create and use OpenAccess SDK JDBC data sources. The JDBC Client hides all the necessary JAR files, which contain the required classes and interfaces.