Scheduling WCM Syndication on a specific time
Summary: This article presents the steps on triggering wcm syndication on a mentioned time. With the auto syndication, syndication can only be set up periodically with the time intervals. This article will help to schedule syndication on a specific time which is not on equal intervals.
Steps to schedule Syndication on specific time.
To schedule syndication on a specific time,
We will create a jsp component which will call the WCM API to call syndication updates.
Create a cronjob and schedule it on required time and to the URL of the jsp using wget command.
This jsp will then be trigerred on the required time using a cronjob which will be called by the operating system.
API code for the jsp.
Create a jsp component in WCM Suthoring portlet and include the below jsp to call the syndication update.
Please find below jsp code to call syndication updates.
Scheduling a cronjob to call the jsp url.
Please find below example on Linux to execute a cronjob to call the Syndication jsp using wget command.
This example executes Url to call the syndication jsp at 11:00 and 16:00 on every day. The comma separated value in a field specifies that the command needs to be executed in all the mentioned time.
00 11,16 * * * wget http://url_to_call_your_jsp_component
00 – 0th Minute (Top of the hour)
11,16 – 11 AM and 4 PM
* – Every day
* – Every month
* – Every day of the week