Distributed Portfolio Manager: A Sample Component

Program Features
Classes

The Distributed Portfolio Manager (DPM) project provides an example of a Bean Works component that combines a number of different components and widgets into a real-life application. The DPM component uses the WebRunner MultiColumnListbox bean and the Bean Works-based Chart bean that are included in the Bean Tester. You can run a DPM component as an application or as an applet through the Bean Tester. You can easily launch a DPM component from the VisualAge WebRunner-->Samples program group.

The DPM component is designed on a scenario in which a customer can access their portfolio information by logging into their account through the web. The customer can buy and sell securities and deposit and withdraw cash from their account. The Portfolio Manager maintains a connection to a live stock quote server, updates the portfolio accordingly, and notifies the customer if the price of one of their securities changes significantly.

Note: Currently the Portfolio Manager is only a demonstration and therefore works only locally. Customer log-in is disabled, and the security price information is simulated.

DPM Sample Component

The DPM component also lets the customer dynamically create different views based on risk type (options, bonds, cash, and so on) or security. The component updates these views periodically if the underlying security prices change:

Program Features

The program features in the DPM project code include:

Classes

The Portfolio Manager project defines the following classes. Select any linked class name to see documented code. You can also look at the source code for any class in webrunner\BeanTools\samples\dpm:

The project also defines a number of implementation classes used to support some of the classes listed above, including the Customer and PortManager classes.

Source code for the Portfolio Manager project is in WebRunner\BeanTools\samples\dpm. You can launch a Portfolio Manager component by typing run at the command prompt from this directory, or from the WebRunner Bean Tools-->Samples program group.


Next

Copyright © Taligent, Inc. 1996 - 1997.
Copyright
© IBM Corporation 1996 - 1997.
All Rights Reserved.