Phase 2: Adding stateful resources to manage stock portfolios
We will now build on top of our simple stock quoting service from Phase 1 to add the ability to manager users stock portfolios. Introduce leverages the WSRF specifications for enabling the creation of stateful grid services. In the grid, just as in the web, state is required to enabling returning to the service or page and remembering information about the caller or the instance data related to that caller. In creating a grid service which is able to manage portfolios we will want this same functionality. We will want one service interface which is capable or creating portfolios, adding stocks to them, and returning quotes for those portfolios. We will use Resources so that we can manage many portfolios through one service interface. These resources will have unique identifiers, like cookies in the web world, that will enable us to retrieve that right resource and act on it.
- Adding the Portfolio Service Context
- Defining State Data of the Portfolio Resource Type
- Add Portfolio Service Operations
- Implement Portfolio Manager Service Operations
- Add a Create Portfolio Operation to Main Service
- Implement Portfolio Creation Method
- Add - Edit the Test in Client
- Add - Deploy Grid Service
- Add - Start Grid Service Container
- Add - Invoke Grid Service





