The following Java code example creates a DataDirect Connect Series for JDBC driver DataSource object and registers it with a JNDI naming service.The DataSource class is provided by DataDirect Connect Series for JDBC and is database-dependent. In this example we use Oracle, so the DataSource class is OracleDataSource. Refer to the appropriate driver chapter in the DataDirect Connect Series for JDBC User’s Guide for the name of the DataSource class for your driver.
Note: The DataSource class implements the ConnectionPoolDataSource interface for pooling in addition to the DataSource interface for non-pooling.// This code creates a DataDirect Connect Series for JDBC data source and
// registers it to a JNDI naming service. This JDBC data source uses the// 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// http://www.oracle.com/technetwork/java/javasebusiness/downloads/
// java-archive-downloads-java-plat-419418.html#7110-jndi-1.2.1-oth-JPR
| © 2012 Progress Software Corporation and/or its subsidiaries or affiliates. |