skip to main content
About the Driver : Using the Driver : Connecting from an Application : Connecting Using Data Sources : Creating Data Sources
  
Creating Data Sources
The following examples show how to create and use Progress DataDirect 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.
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.
You must include the javax.sql.* and javax.naming.* classes to create and use Progress DataDirect 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.