All Examples This Package
Class examples.event.stocks.SendEvents
java.lang.Object
|
+----examples.event.stocks.SendEvents
- public class SendEvents
- extends Object
This application simulates a stock's price changing from a given
start price, up to an end price. The prices are in whole dollars,
and an event is generated for each dollar increment. See Register.java,
which monitors the price of a stock and sends email when the stock
price reaches a particular value.
To run this program, execute:
java examples.event.stocks.SendEvents WebLogicURL STOCKSSYMBOL STARTPRICE ENDPRICE
For example,
java examples.event.stocks.SendEvents t3://localhost:7001 SUNW 75 95
- Author:
- Copyright (c) 1997-98 by WebLogic, Inc. All Rights Reserved.
- Copyright (c) 1999 by BEA Systems. All Rights Reserved.
-
SendEvents()
-
-
main(String[])
- Generates events for the Register class in this directory.
SendEvents
public SendEvents()
main
public static void main(String argv[]) throws Exception
- Generates events for the Register class in this directory. After
you register, you call this class to bid up the stock to the
point where it will make our Evaluate method return true and call
our Action method.
All Examples This Package