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:
- Set up your development shell as described in
Setting up your environment.
- 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.
- Compile this example by executing the following command in your development shell:
$ javac -d %CLIENT_CLASSES% EventfulListClient.java
- 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.
- 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.
-
EventfulListClient()
-
-
action(EventMessageDef)
- Implements part of the WebLogic Event interface.
-
main(String[])
- Calls the example.
-
registerInit(ParamSet)
- Implements part of the WebLogic Event interface.
-
run()
- Runs the example.
-
setServices(T3ServicesDef)
- Saves the services object.
EventfulListClient
public EventfulListClient()
setServices
public void setServices(T3ServicesDef services)
- Saves the services object.
registerInit
public void registerInit(ParamSet p)
- Implements part of the WebLogic Event interface.
action
public void action(EventMessageDef ev)
- Implements part of the WebLogic Event interface.
main
public static void main(String argv[])
- Calls the example.
run
public void run()
- Runs the example.
All Examples This Package