Enabling the promotion scheduled task
You enable the promotion scheduled task using the WSRR scheduler framework.
About this task
Note: The current asynchronous promotion capability is deprecated,
and will be removed in a future release; the promotion scheduled task
is therefore also deprecated.
To enable the
promotion scheduled task, perform the following actions:Procedure
- Create a scheduler configuration file for the promotion scheduled task.
- Load the scheduler configuration file into WSRR.
Example
- <enabled>: controls whether the promotion scheduled task is enabled. The value of this element must be true or false.
- <interval>: the interval at which the scheduled task is executed. The time unit depends on the value of the <intervalGranularity> element.
- <startTimeOffset>: the time delay after which the scheduled task begins processing. The time unit depends on the value of the <intervalGranularity> element.
- <intervalGranularity>: the time unit associated with the <interval> and <startTimeOffset> elements.
<?xml version="1.0" encoding="UTF-8"?>
<!-- begin_generated_IBM_copyright_prolog -->
<!-- Licensed Materials - Property of IBM -->
<!-- 5724-N72 5655-R41 -->
<!-- (c) Copyright IBM Corp. 2006, 2007 All Rights Reserved -->
<!-- US Government Users Restricted Rights - Use, duplication or -->
<!-- disclosure restricted by GSA ADP Schedule Contract with -->
<!-- IBM Corp. -->
<!-- end_generated_IBM_copyright_prolog -->
<scheduler-configuration
xmlns="http://www.ibm.com/xmlns/prod/serviceregistry/6/1/SchedulerProperties"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<scheduler-task name="Promotion">
<type>Message</type>
<subscriptions>
<topic>jms/TransitionSuccessTopic</topic>
</subscriptions>
<interval>120</interval>
<class>com.ibm.sr.promotion.tasks.Promote</class>
<enabled>true</enabled>
<startTimeOffset>30</startTimeOffset>
<intervalGranularity>seconds</intervalGranularity>
<transactionality>perMessage</transactionality>
</scheduler-task>
</scheduler-configuration>
What to do next
For full details on the configuration file structure, and the ways in which you can load it into WSRR, see the Related link.