A SERVICE OF

logo

Configuring AquaLogic Commerce Services
44 BEA AquaLogic Commerce Services Deployment Guide
<bean id="updateProductCacheTrigger"
class="org.springframework.scheduling.quartz.SimpleTriggerBean">
<property name="jobDetail" ref="updateProductCacheJob" />
<!-- Start delay in *milliseconds* -->
<property name="startDelay" value="30000" />
<!-- repeat interval in *milliseconds* (3600000 = 1 hour) -->
<property name="repeatInterval" value="3600000" />
</bean>
When using the RefreshableCachedProductRetrieveStrategy, it is necessary to periodically re-
execute promotion rules on cached products because the promotion rules that apply to the cached
product may have changed. You can configure the amount of time for which a product may be
returned from the cache without re-running rules in the serviceSF.xml configuration file as shown
in the XML block below.
<bean init-method="start"
id="refreshableCachedProductRetrieveSrategy"
class="com.elasticpath.service.catalogview.
impl.RefreshableCachedProductRetrieveStrategyImpl">
<property name="epRuleEngine">
<ref bean="epRuleEngine" />
</property>
<property name="productService">
<ref bean="productService" />
</property>
<property name="defaultProductLoadTuner">
<ref bean="productLoadTunerForProductPage" />
</property>
<!-- Set the rule execution interval here (in seconds).
If a product is requested from the cache and it has
existed in the cache for longer than this period of
time then it will have rules re-executed on it. -->
<property name="ruleExecutionIntervalSeconds">
<value>30</value>
</property>
</bean>
The bean id for this strategy is "refreshableCachedProductRetrieveSrategy"