All Examples  This Package

Class examples.jdbc.t3client.refreshpool

java.lang.Object
   |
   +----examples.jdbc.t3client.refreshpool

public class refreshpool
extends Object
This example demonstrates how to set up automatic checking of connections in any WebLogic JDBC connection pool that you have registered in the weblogic.properties file.

To set up this example:

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

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

    $ javac -d %CLIENT_CLASSES% refreshpool.java

  3. Start WebLogic Server in a separate shell.

  4. Run this example by executing the following command in your development shell. The arguments are explaned under main(), in the Method section.
    $ java examples.jdbc.t3client.refreshpool
       WebLogicHost:port WebLogicPassword POOLNAME #minutes SQL 

Author:
Copyright (c) 1996-1999 by BEA WebXpress, Inc. All Rights Reserved.

Constructor Index

 o refreshpool()

Method Index

 o main(String[])
In the main of this example, we first retrieve arguments from the user that set the following:

Constructors

 o refreshpool
 public refreshpool()

Methods

 o main
 public static void main(String[] argv) throws Exception
In the main of this example, we first retrieve arguments from the user that set the following:

Other variables that you must set in this class are:

After all of the information is collected from the user, we use it to create ParamSets for the event registration. Then we register an interest in the internal WebLogic event WEBLOGIC.TIME. The Action method for this registration is ActionRefreshPool, which is documented in weblogic.event.actions.ActionRefreshPool.


All Examples  This Package