All Examples This Package
Class examples.event.clientside.client1
java.lang.Object
|
+----examples.event.clientside.client1
- public class client1
- extends Object
- implements ActionDef
This class demonstrates an action that notifies the client that the
evaluator for its registration returned true; that is, client-side
notification of an event. The main() in this class sends a
series of stock events to the WebLogic Server; the evaluate()
method for the registration is executed on the WebLogic Server. The
Action object that is part of the registration calls back to the
client who made the registration.
- Author:
- Copyright (c) 1996-98 by WebLogic, Inc. All Rights Reserved.
- Copyright (c) 1999-2000 by BEA Systems, Inc. All Rights Reserved.
-
client1()
-
-
action(EventMessageDef)
- Action method.
-
generateEvent(int)
- Generates a stock event for illustrating
client-side notification.
-
main(String[])
- Main allows this to be called from the command line.
-
registerInit(ParamSet)
- Registers initialization parameters for the action.
-
setServices(T3ServicesDef)
- Sets the services object.
client1
public client1()
setServices
public void setServices(T3ServicesDef services)
- Sets the services object. The services object
allows access to services within the WebLogic Server,
like the WebLogic Event Services used in this example.
registerInit
public void registerInit(ParamSet p)
- Registers initialization parameters for the action.
- Parameters:
- p - ParamSet for initialization
action
public void action(EventMessageDef ev)
- Action method. Called when an event of interest
delivered to the evaluate() method returns true.
- Parameters:
- ev - EventMessage
generateEvent
public static void generateEvent(int count)
- Generates a stock event for illustrating
client-side notification.
- Parameters:
- count - Count for this event
main
public static void main(String argv[]) throws Exception
- Main allows this to be called from the command line.
String argv is the WebLogic Server URL.
All Examples This Package