Using the driver in an applet
You can use HCL Informix® JDBC Driver in an applet to connect to the Informix database from a web browser. The following steps show how to specify HCL Informix JDBC Driver in the applet and how to ensure that the driver is correctly downloaded from the web server.
To use HCL Informix JDBC Driver in an applet:
- The sqlhosts file and LDAP
server access. The host name and port number properties or service
name of the Informix database
server in the database URL are optional if you are referencing an sqlhosts file
directly or through an LDAP server.
For unsigned applets, however, the host name and the port number or service name of the Informix database server are always required, unless your applet is using the HTTP proxy server. For more information about the HTTP proxy server, see An HTTP proxy server.
- LOBCACHE=0. Setting the LOBCACHE environment variable to 0 in the database URL specifies that a smart large object is always stored in a file. This setting is not supported for unsigned applets.
To access a database on a different host or behind a firewall from an applet, you can use the Informix HTTP proxy servlet in a middle tier. For more information, see An HTTP proxy server.