All Examples  This Package

Class examples.jdbc.oracle.waiton

java.lang.Object
   |
   +----examples.jdbc.oracle.waiton

public class waiton
extends Object
This example demonstrates how the WebLogic extension to Connection waitOnResources() can be used to return control to the program when the current operation would otherwise wait (in this case indefinitely) for locked DBMS resources.

This example is run on the command line and is output to System.out.

The waitOnResources() method is not supported when using the Oracle 8 API. Therefore, this example will not run when using the Oracle 8 API. For more information on using Oracle API verisions, see Setting your path and client libraries in the WebLogic jDriver for Oracle installation guide.

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 Oracle configuration.

  3. Compile this example by executing the following command in your development shell: If you need more help, check the section on connecting to a database in the Developers Guide, Using WebLogic jDriver for Oracle.

    $ javac -d %CLIENT_CLASSES% waiton.java

  4. Run this example by executing the following command in your development shell:

    $ java examples.jdbc.oracle.waiton

Author:
Copyright (c) 1997-2000 by BEA Systems, Inc. All Rights Reserved.

Constructor Index

 o waiton()

Method Index

 o main(String[])

Constructors

 o waiton
 public waiton()

Methods

 o main
 public static void main(String argv[]) throws Exception

All Examples  This Package