Scheduling scope synchronization
We can schedule scope synchronization to be performed at specific times by defining the schedule with the XML configuration interface.
- Verify whether any scheduled synchronizations have already been defined for the portal.
- Create an export file that we can use with the xmlaccess command. Here is an example of a request we 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.0.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 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, we 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.0.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 containing the scheduling request. Scope information for the web content system will then be synchronized automatically according to the schedule we defined.
- Optional: To set a minimum time before subsequent synchronizations are performed, 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 Resources > Resource Environment > Resource Environment Providers.
- 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.
Parent: Synchronize scopes for web contentRelated: