InterClient Connection Pooling
Go Up to InterClient Data Source Properties for InterBase
InterClient now works with Container Managed Persistence (CMP) 2.0, which is supplied with the server. This enables JDBC DataSource 2.x connectivity to InterBase databases. The following jndi-definition.xml
file shows how it can be used through an application server:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE jndi-definitions PUBLIC "-//Borland Corporation//DTD JndiDefinitions//EN" "http://www.borland.com/devsupport/appserver/dtds/jndi-definitions.dtd"> <jndi-definitions> <visitransact-datasource> <jndi-name>serial://datasources/DataSource</jndi-name> <driver-datasource-jndiname>serial://datasources/driverDataSource</driver-datasource-jndiname> <property> <prop-name>connectionType</prop-name> <prop-type>Enumerated</prop-type> <prop-value>Direct</prop-value> </property> <property> <prop-name>dialect</prop-name> <prop-type>Enumerated</prop-type> <prop-value>interbase</prop-value> </property> </visitransact-datasource> <driver-datasource> <jndi-name>serial://datasources/driverDataSource</jndi-name> <datasource-class-name>interbase.interclient.JdbcConnectionFactory</datasource-class-name> <property> <prop-name>user</prop-name> <prop-type>String</prop-type> <prop-value>SYSDBA</prop-value> </property> <property> <prop-name>password</prop-name> <prop-type>String</prop-type> <prop-value>masterkey</prop-value> </property> <property> <prop-name>serverName</prop-name> <prop-type>String</prop-type> <prop-value>agni</prop-value> </property> <property> <prop-name>databaseName</prop-name> <prop-type>String</prop-type> <prop-value>c:/admin.ib</prop-value> </property> <property> <prop-name>sqlDialect</prop-name> <prop-type>int</prop-type> <prop-value>3</prop-value> </property> <property> <prop-name>create</prop-name> <prop-type>boolean</prop-type> <prop-value>true</prop-value> </property> </driver-datasource> </jndi-definitions>