All Examples This Package
Class examples.jdbc.t3client.connectioncache
java.lang.Object
|
+----examples.jdbc.t3client.connectioncache
- public class connectioncache
- extends Object
The example connectioncache demonstrates the creation
of persistent workspaces, and the reuse of JDBC connections stored
in these workspaces.
This example taks no arguments, and expects to connect to
a WebLogic Server on the local host, listening on port 7001. The
JDBC connection is to an Oracle instance named DEMO. A
table named "emp" is queried.
To set up this example:
- Set up your development shell as described in Setting up your environment.
- Change connection parameters to correspond to your database
configuration. If you need more help, check the section on connecting
to a database in the Developers Guide, Using jdbcKona/Oracle.
- Compile the example by executing the following command in your development shell:
$ javac -d %CLIENT_CLASSES% connectioncache.java
- Start WebLogic Server in a separate shell.
- Run this example by executing the following command in your
development shell:
$ java examples.jdbc.t3client.connectioncache
- Author:
- Copyright (c) 1996-1999 by BEA WebXpress, Inc. All Rights Reserved.
-
connectioncache()
-
-
main(String[])
- Runs this example from the command line.
connectioncache
public connectioncache()
main
public static void main(String[] argv) throws Exception
- Runs this example from the command line.
All Examples This Package