Creating Data Sources
- Last Updated: June 14, 2020
- 1 minute read
- DataDirect Connectors
- JDBC
- Oracle Service Cloud 5.1
- Documentation
The following examples show how to create and use DataDirect Connect Series for JDBC data sources:
- JNDI_LDAP_Example.java can be used to create a JDBC data source and save it in your LDAP directory using the JNDI Provider for LDAP.
- JNDI_FILESYSTEM_Example.java can be used to create a JDBC data source and save it in your local file system using the File System JNDI Provider.
Note: To connect using a data source, the driver needs to access a
JNDI data store to persist the data source information. To download the JNDI File System
Service Provider, go to the Oracle Technology Network Java SE Support downloads
page and make sure that the fscontext.jar and
providerutil.jar files from the download are on your classpath.
You can use these examples as templates to create your own data sources. These examples are in the install_dir/examples/JNDI directory, where install_dir is your product installation directory.
Note: You must include the
javax.sql.* and
javax.naming.* classes to create and use DataDirect Connect Series for
JDBC data sources. The driver provides
the necessary JAR files, which contain the required classes and interfaces. If you plan to
connect using a JDBC data source, the fscontext.jar and
providerutil.jar files, which are shipped with the JNDI File System
Service Provider, must be on your classpath. To download the JNDI File System Service
Provider, go to the Oracle Technology Network Java SE Support downloads
page and select a JNDI version.