This example only works under Windows NT/9x. The example makes use of the
JDBC-ODBC bridge to access the employee table and may not work with JView.
Before using this example the following entry must be defined as a System
DSN using the ODBC Data Source Administrator from the Control Panel.
Driver: Microsoft Access Driver (*mdb)
Data Source Name: iob
Database: iws_dir\databases\iob.mdb
where:
iws_dir is the directory where iServer was installed, normally c:\iws.
This example displays a table showing any existing rows in the employee
table.
The example establishes a shared cached connection when the servlet is first
loaded and uses that single connection for all client requests. The
connection is finally closed when the server is stopped.
Connection caching is an efficient way of managing a limited resource.
[ view source ]
[ run ]
|