Dynamically reading the Informix sqlhosts file

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 the 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 the 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 about HDR, see Connections to the servers of a high-availability cluster.

An unsigned applet cannot access the sqlhosts file or an LDAP server. For more information, see Using the driver in an applet.


Copyright© 2020 HCL Technologies Limited