Invoking the Service Provider model from the Service Consumer model
Now that we have tested our Service Provider model, we are going to move to the UI model. We will access the data provided by the provider. In the WEF terminology, the UI models are identified as Service Consumers. The consumer name is probably due to two reasons — The UI model needs to add a Service Consumer builder to its builder call list and this UI model also consumes data provided by the provider. It is true that the consumer also sends data to the provider, but Service Consumer is a good name for this builder.
Let's create another model to perform the consumer role. Perform the following steps:
1. Open the models directory and open chapter08 folder.
2. Right-click on the ui folder and select New.
3. From the pop-up menu, select WebSphere Portlet Factory Model.
4. Select the project you have been working on and click on Next.
5. From the Select Model window, select Empty.
6. Name this model investorsCs.
7. Click on Finish...