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:

  1. Set up your development shell as described in Setting up your environment.

  2. 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.

  3. Compile the example by executing the following command in your development shell:

    $ javac -d %CLIENT_CLASSES% connectioncache.java

  4. Start WebLogic Server in a separate shell.

  5. 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.

Constructor Index

 o connectioncache()

Method Index

 o main(String[])
Runs this example from the command line.

Constructors

 o connectioncache
 public connectioncache()

Methods

 o main
 public static void main(String[] argv) throws Exception
Runs this example from the command line.

All Examples  This Package