Home |
Previous Page | Next Page Getting Started >
You can use IBM Informix JDBC
Driver in
an applet to connect to an Informix database from a Web browser.
The following steps show how to specify IBM Informix JDBC
Driver in the applet and
how to ensure that the driver is correctly downloaded from the Web
server.
To use IBM Informix JDBC
Driver in an applet
- Install ifxjdbc.jar in
the same directory as your applet class file.
- Specify ifxjdbc.jar in
the ARCHIVE attribute of the APPLET tag
in your HTML file, as shown in the following
example:
<APPLET ARCHIVE=ifxjdbc.jar CODE=my_applet.class
CODEBASE=http://www.myhost.com WIDTH=460 HEIGHT=160>
</APPLET>
Important:
Some browsers do not support the ARCHIVE attribute
of the APPLET tag. If this is true of your
browser, unpack and install the ifxjdbc.jar file
in the root directory of your Web server. If your browser also does
not support the JDBC API,
you must install the class files included in the java.sql package
in the root directory of the Web server as well. See your Web server
documentation for information on installing files in the root directory.
Because
unsigned applets cannot access some system resources for security
reasons, the following features of IBM Informix JDBC
Driver do not work for unsigned applets:
- sqlhosts file and LDAP server access. The
host name and port number properties 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
are always required, unless your applet is using the HTTP proxy
server. For more information on the HTTP proxy
server, see Using
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.
Tip:
You can enable these features for unsigned applets using
Microsoft Internet Explorer, which provides an option to configure
the applet permissions.
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 Using
an HTTP Proxy Server.
Home |
[ Top of Page | Previous Page | Next Page | Contents |
Index ]