IBM Informix JDBC Driver supports the JNDI (Java naming and directory interface). This support enables JDBC programs to access the Informix sqlhosts file. The sqlhosts file lets a client application find and connect to an Informix database server anywhere on the network. For more information about this file, see the IBM Informix: Administrator's Guide for your database server.
You can access sqlhosts data from a local file or from an LDAP server. The system administrator must load the sqlhosts data into the LDAP server using an Informix utility.
Your CLASSPATH variable must reference the JNDI JAR (Java archive) files and the LDAP SPI (service provider interface) JAR files. You must use LDAP Version 3.0 or later, which supports the object class extensibleObject.
You can use the sqlhosts file group option to specify the name of a database server group for the value of INFORMIXSERVER. The group option is useful with High-Availability Data Replication (HDR); list the primary and secondary database servers in the HDR pair sequentially. For more information on about how to set or use groups in sqlhosts file, see the IBM Informix: Administrator's Guide. For more information on HDR, see Using High-Availability Data Replication.
An unsigned applet cannot access the sqlhosts file or an LDAP server. For more information, see Using the Driver in an Applet.
Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]