Automatically reloading promotion configuration files

This feature allows changes to promotion configuration files to be applied without having to restart the WebSphere Commerce server. The reloading occurs after the specified reload interval period has elapsed. This feature reloads the following configuration files: WCSPromotionEngineConfig.xml and wc-admin-component.xml (-ext), depending on whether the files have been modified since the last reload time.


Task info

When this feature is enabled, any changes to promotion configuration files are automatically reloaded after the specified reload interval period has elapsed. Ensure that you monitor the trace for potential errors that might occur as a result of the reload.


Procedure

  1. Open WebSphere Commerce Developer and switch to the Enterprise Explorer view.

  2. Open the promotion engine configuration XML file in an editor:

    workspace_dir/WC/xml/PromotionEngineConfiguration/WCSPromotionEngineConfig.xml

  3. Within the <DefaultBehavior> element, locate the line of code labeled 1 in the following example:

      <DefaultBehavior>
              <StatelessInvocation>true</StatelessInvocation>
              <CheckTargetingAtRuntime>true</CheckTargetingAtRuntime>
              <SkipTargetingOnCodeEntered>true</SkipTargetingOnCodeEntered>
              <PriceAdjustmentBasedOnStandardOfferPrice>true</PriceAdjustmentBasedOnStandardOfferPrice>
              <EvaluationFlowControl>0</EvaluationFlowControl> 
              <SequenceCombinationLimit>50</SequenceCombinationLimit> 
              <Debug>false</Debug>
      <ReloadInterval>-1</ReloadInterval> 1 
      </DefaultBehavior>
      …

    1. To enable this feature, change the value of the <ReloadInterval> element to the number of milliseconds to wait for the automatic reload to occur. To disable this feature, set the reload interval to any negative value.

    2. Optional: To change the upper limit for the number of sequences to evaluate for each promotion, change the value of the <SequenceCombinationLimit> element to a different number.

  4. Save and close the file.