ShowTable of Contents
The WebSphere Portal Composite Application Infrastructure (CAI)
provides two tasks that run periodically:
- CAI policy handler
CAI application purger
Per default both
tasks are invoked by a scheduler. The policy handler task is invoked at
10:30 p.m. daily whereas the application purger is invoked once a week
(12:00 pm on Sunday).
The CAI policy handler task checks the
policy status of every place. In case a policy warning or
violation is detected, actions are executed. These are defined in the
corresponding Composite Application Policy. They can be managed using
the Resource Policy Editor CA portlet.
As the deletion of a place can be time consuming and would block the UI the composite
application infrastructure uses a lazy delete pattern, When the
deletion of an place is requested not the entire place data
is removed immediately but only flagged as deleted. In addition access
to these places is prevented as they are hidden. The application
purger task removes the remaining data from the portal database and
invokes the affected business components handlers to also remove the
data managed by them.
The out of the box schedules may not fit to the customer needs, hence they need a way to reschedule them.
Rescheduling in WebSphere Portal 6.0 is done in a properties file (TaskSchedulingService.properties).
Starting with WebSphere Portal 6.1 this is done via the XML configuration interface.
The following section describes this approach.
An XML configuration interface script to reschedule the CAI daemons looks like this:
<task action="create" name="com.ibm.portal.ai.task.AITask_Purger">
<task action="create" name="com.ibm.portal.ai.task.AITask_PolicyHandler">
this script will invoke the CAI application purger task to run each day
at 3:30 am whereas the CAI policy handler is scheduled to run once a
week (at Friday) at 8:30 pm.
It is important to specify the correct task name for each CAI task:
- CAI application purger task: com.ibm.portal.ai.task.AITask_Purger
- CAI policy handler: com.ibm.portal.ai.task.AITask_PolicyHandler
If you just want to execute a task (for example the application purger) once use the following script:
<task action="create" name="com.ibm.portal.ai.task.AITask_Purger"/>
Note: Executing a task once has no effect on scheduled tasks.
is not possible to disable the CAI tasks at all. In case it is desired
to run the tasks less frequently the schedule can be changed
accordingly. For example run them only once a month use the tag dayOfMonth. This can however result in a much longer execution of the task as there is more data to process.
See IBM WebSphere Portal Version Information Center
for version 6.1.0 or higher:
Automated tasks for composite
XML configuration reference: