All Examples  This Package

Class examples.dbkona.EventfulListClient

examples.dbkona.EventfulListClient

public class EventfulListClient
implements ActionDef
EventfulList and EventfulListClient are a pair of applications that run together to demonstrate how dbKona applications can cooperate to share data and changes to data in a rapid way, using the WebLogic Events built into the EventfulTableDataSet.

These examples require an Oracle DBMS and need a clean copy of the Oracle "emp" table (in the DEMO database).

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. If you need more help, check the section on connecting to a database in the Developers Guide, Using WebLogic jDriver for Oracle.

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

    $ javac -d %CLIENT_CLASSES% EventfulListClient.java

  4. To run, execute the EventfulListClient first from the command line by executing the following command in your development shell:

    $ java examples.dbkona.EventfulListClient t3://WebLogicHost:port
      login password server

    Where WebLogicHost:port is the hostname and port number of your WebLogic Server and port, login, password and server are connection properties for your Oracle DBMS instance.

    The application displays some data, and waits for changes made to the eventful data set.

  5. At a second command line, start the EventfulList application. It takes the same arguments as EventfulListClient plus an employee name from a record in the "emp" table, to demonstrate that data is passed. You should see the first application report that it received the name from the EventfulList. You can repeatedly execute EventfulList with different names.

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

Constructor Index

 o EventfulListClient()

Method Index

 o action(EventMessageDef)
Implements part of the WebLogic Event interface.
 o main(String[])
Calls the example.
 o registerInit(ParamSet)
Implements part of the WebLogic Event interface.
 o run()
Runs the example.
 o setServices(T3ServicesDef)
Saves the services object.

Constructors

 o EventfulListClient
 public EventfulListClient()

Methods

 o setServices
 public void setServices(T3ServicesDef services)
Saves the services object.

 o registerInit
 public void registerInit(ParamSet p)
Implements part of the WebLogic Event interface.

 o action
 public void action(EventMessageDef ev)
Implements part of the WebLogic Event interface.

 o main
 public static void main(String argv[])
Calls the example.

 o run
 public void run()
Runs the example.


All Examples  This Package