Appendix B. Deploying the portlet
This section provides information on how to deploy a portlet WAR file through RAD with just a few simple clicks.
- In the Project Explorer, right-click on the Ajax_and Portal
project and select Deploy Portlet... from the menu
as shown in Figure 12.
Figure 12. Deploy Portlet menu option
- Configure a portal server to enable deployment. The first time you
run this wizard, there will not be a server configured. If there
is not a server configured, then follow these steps, otherwise
continue to Step number 3.
- Click the New... button to configure a new server. Note: If you have a remote portal server you wish to deploy to, then you either FTP access or a shared directory (for example, NFS). Setting up remote servers is out of the scope of this exercise, and you will need to consult the RAD and WebSphere Portal help documentation.
- For a normal portal environment, you will want to select
the values shown in Figure 13. Adjust these to match your
environment and click Next.
Figure 13. Deploy and define new server
- Enter the following information. Standard values are shown
in Figure 14, but you may have to adjust for your
particular deployment. When finished, click Next.
Figure 14. Deploy portal settings
- Configure the publishing settings. The values shown in
Figure 15 are for a local installation on a Linux
platform. Adjust these to match your configuration, then
click Finish.
Figure 15. Deploy, publishing settings
- Select the appropriate server to deploy your portlet to. Typically, this is localhost > WebSphere Portal v5.1 for Import, Export and Deploy @ localhost, and click Finish. See Figure 16.
- If the portlet has been previously deployed, you will receive a
pop-up asking to overwrite the existing content. Answer Yes
to continue to deploy the changes.
Figure 16. Deploy, server select
- Your portlet should now be deployed on the server!
If this is the first time deploying the portlet, you need to add it to a page on your portal:
- Using your Web browser, log into your portal using an administrative account.
- [Optional] Create a new page for the portlet.
- Select the portal Administration link.
- Select Portal User Interface > Manage Pages.
- Select My Portal link from the list pages.
- Click the New page button.
- Provide a name of Ajax and Portal,and customize as you see fit. Then click the OK button, and then OK again.
- Add the portlet to a page:
- Select the portal Administration link.
- Select Portal User Interface > Manage Pages.
- Select My Portal link from the list pages.
- Click the Edit Page Layout button for your page that you will place your portlet.
- Click the Add portlets button.
- Search for "Ajax", select the Ajax Database Explorer portlet, and click OK.
- Click Done to finish the page edit.






