Creating data sources
- Last Updated: May 13, 2025
- 1 minute read
- DataDirect Connectors
- JDBC
- Documentation
The following examples show how to create and use Progress DataDirect data sources:
JNDI_LDAP_Example.javacan be used to create a JDBC data source and save it in your LDAP directory using the JNDI Provider for LDAP.JNDI_FILESYSTEM_Example.javacan be used to create a JDBC data source and save it in your local file system using the File System JNDI Provider.
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.