skip to main content
Using the driver : Connecting from an application : Connecting using data sources : Creating data sources
  

Try DataDirect Drivers Now
Creating data sources
The following example files provide details on creating and using Progress DataDirect data sources with the Java Naming Directory Interface (JNDI), where install_dir is the product installation directory.
*install_dir/Examples/JNDI/JNDI_LDAP_Example.java can be used to create a JDBC DataSource and save it in your LDAP directory using the JNDI Provider for LDAP.
*install_dir/Examples/JNDI/JNDI_FILESYSTEM_Example.java can be used to create a JDBC DataSource and save it in your local file system using the File System JNDI Provider.
To connect using a JNDI DataSource, the driver needs to access a JNDI data store to persist the data source information. For a JNDI file system implementation, you must download the File System Service Provider from the Oracle Technology Network Java SE Support downloads page, unzip the files to an appropriate location, and add the fscontext.jar and providerutil.jar files to your class path. These steps are not required for LDAP implementations because the LDAP Service Provider has been included with Java SE since Java 2 SDK, v1.3.