skip to main content
Getting Started : Using the Drivers : Connecting Using Data Sources : Creating Data Sources
  
Creating Data Sources
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. You can download the JNDI File System Service Provider from Oracle. Make sure that the fscontext.jar and providerutil.jar files from the download are on your classpath. Refer to Oracle documentation for details.
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 drivers provide 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. You can download the JNDI File System Service Provider from the Oracle Website.