Running Portlets as Jobs

You might occasionally want to run a job to cache portlet content (for example, if the portlet takes a couple minutes to render). When the job runs, it creates a snapshot of the portlet content (in the form of a static HTML file) that can be displayed on a Web site. The file is stored in the shared files directory (for example, C:\bea\alui\ptportal\10.3.0) in \StagedContent\Portlets\<portletID>\Main.html. You can then create another portlet that simply displays the static HTML.

To run a portlet as a job:

  1. Click Administration.

  2. In the Create Object drop-down list, select Job.

  3. On the Main Settings page, click Add Operation.

  4. Select the portlets you want to run with this job, and click OK.

  5. Under Schedule, select the frequency with which you want this job to run. Click here for more information on the Job Editor.

  6. Click Finish.

Notes: