You can schedule scope synchronization to be run at specific
times by defining the schedule with the XML configuration interface.
Procedure
- Verify whether any scheduled synchronizations are defined
for the portal.
- Create an export file that you can use with the xmlaccess command.
Here is an
example of a request you can use to query the current configuration:
<?xml version="1.0" encoding="UTF-8"?>
<request type="export" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="PortalConfig_8.5.0.xsd" >
<portal action="locate">
<task action="export" name="com.ibm.portal.cp.SynchronizationTask"/>
</portal>
</request>
- Run the xmlaccess command,
specifying the export file.
The resulting output file contains
any scheduled synchronization times that are defined in the portal.
- Set the synchronization schedule.
- To set a time for a scheduled synchronization, create
an XML request document.
For example, to schedule a synchronization
to occur at 15:36 hours every day, you would use a request like this:
<?xml version="1.0" encoding="UTF-8"?>
<request type="update" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="PortalConfig_8.5.0.xsd">
<portal action="locate">
<task action="create" name="com.ibm.portal.cp.SynchronizationTask">
<startTime>15:36</startTime>
</task>
</portal>
</request>
For each scheduled synchronization, create
a separate task
element and specify
the time with a startTime
element.
- Run the xmlaccess command,
specifying the file that contains the scheduling request.
Scope
information for the web content system is then synchronized automatically
according to the schedule you defined.
- Optional: If you want to set a minimum time
before subsequent synchronizations are run, specify the
tagging.syndication.minimumTagSynchronizationTimeInterval
property
in the Web Content Manager configuration
service.
- Log in to the WebSphere® Integrated Solutions Console (
http://hostname.example.com:10027/ibm/console
).
- Click .
- Click WP ConfigService.
- Under Additional Properties,
click Custom Properties.
- Click New, and enter the property
name
tagging.syndication.minimumTagSynchronizationTimeInterval
.
- Set the string value to the number of seconds between
synchronizations.
- Click OK, and save the changes
to the master configuration.
- Restart the portal.