Using the driver in an applet
About this task
You can use HCL OneDB® JDBC Driver in an applet to connect to the OneDB database from a web browser. The following steps show how to specify HCL OneDB JDBC Driver in the applet and how to ensure that the driver is correctly downloaded from the web server.
To use HCL OneDB JDBC Driver in an applet:
Procedure
Results
- The sqlhosts file and LDAP
server access. The host name and port number properties or service
name of the OneDB 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 OneDB 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
0in 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 OneDB HTTP proxy servlet in a middle tier. For more information, see An HTTP proxy server.