Enabling the subscription notifier scheduler

To activate your subscription notifiers, you must enable a WSRR scheduled task. When enabled, the task runs periodically to check for changes to subscribed objects, and notifies the subscription end points by using a subscription notifier of the associated type; for example, email subscription notifier, HTTP POST subscription notifier.

About this task

The default profile contains a subscription notifier plug-in scheduler entry called "SubscriptionNotifierPluginScheduler". This scheduler entry defines a subscription notifier plug-in scheduled task that is turned off by default; to use the subscription notifier plug-in framework, you must enable the scheduled task.

If you are using WSRR Studio to manage your configuration profiles, use WSRR Studio to modify your configuration profile files; see Editing generated artifacts.

Procedure

Complete the following steps to enable the subscription notifier plug-in scheduled task by using the web UI:

  1. Open the WSRR web user interface.
  2. Switch to the Configuration perspective if necessary, by selecting Configuration in the Perspective list.
  3. Click Active Profile > Scheduler.
  4. Click SubscriptionNotifierPluginScheduler.
  5. Change the value of the <enabled> element to true.
  6. (Optional) Change the values of the <interval> and <intervalGranularity> elements to control the required frequency at which the scheduled task runs; the default is 5 minutes.
  7. Click OK to save your changes

Example

The following is an example of a subscription notifier plugin scheduler configuration file:
<scheduler-configuration
  xmlns="http://www.ibm.com/xmlns/prod/serviceregistry/6/1/SchedulerProperties">
  <scheduler-task
    name="SubscriptionNotifierPluginMessageTask">
    <type>Message</type>
    <subscriptions>
      <topic>jms/SubscriptionTopic</topic>
    </subscriptions>
    <interval>5</interval>
    <class>com.ibm.sr.subscriptionnotifier.plugin.SubscriptionNotifierPluginMessageTask</class>
    <enabled>true</enabled>
    <startTimeOffset>1</startTimeOffset>
    <intervalGranularity>minutes</intervalGranularity>  
    <startTimeOffsetGranularity>seconds</startTimeOffsetGranularity>
    <transactionality>perMessage</transactionality>
  </scheduler-task>
</scheduler-configuration>