ShowTable of Contents
Previous |
Next
So far in previous topics in this section, we built a web application. If you are new to IBM Web Experience Factory, you will learn that with Web Experience Factory you can build once and deploy in multiple servers, all from a single code base. You can deploy Web Experience Factory 7.0.1 to WebSphere Application Server, WebSphere Portal Server, and Rich Client Platform.
In this topic, we show how to enable your application to be deployed on a Portal server. You need to add the Portlet Adapter builder as follows.
Adding the Portlet Adapter builder
The Portlet Adapter is added to the OfficeSupplies.model. To add the Portlet Adapter builder, follow these steps:
- Click Add a new builder call from the builder call list.
- Select Portlet Adapter from the Portal Integration category.
- Enter OfficeSupplies in the Name and Portlet Title fields.
- Leave the default for the remainder of the builder parameters.
- Click OK to finish.
This figure shows the Portlet Adapter builder.

Testing the portlet
To publish and test the portlet follow these steps.
- Right click on the OfficeSupplies Project and click Publish.
- You now need to create a server configuration to publish to your portal server.

- Select IBM WebSphere Application Server and Portal Server 7.x from the list and click OK.
- Type the host, port, user name, and password for your portal server and click Test Connection.

- Click OK,. Click OK again to publish.
(It might take a while to publish, depending on server performance and network speed.)
- After the publish, in Select Remote Application Sychronization Method, Select HTTP for Synchronize Mode and OK .

- Log in to the Portal Server as an Administrator, create a new page, and add the Office Supplies portlet to the page. The portlet should run as it did on the WAS CE server.

In this simple sample, the blogs URL and other configuration data are still being read from the properties file in the ConnectionsConfigData model. A better solution for a portlet is to use the portlet configuration parameters or portlet settings. The IBM Web Experience Factory documentation describes how Profile Sets can be used to manage portlet parameters and settings.
Refer to
10.6 The Office Supplies application sample code for information about how to download the sample code as well as for instructions about how to install it in your environment.
Parent topic:
10.0 IBM Web Experience Factory