![](https://pdfstore-manualsonline.prod.a.ki/pdfasset/0/41/041f93a3-11a9-4d33-a74b-89372bd39d58/041f93a3-11a9-4d33-a74b-89372bd39d58-bg2f.png)
Configuring AquaLogic Commerce Services
42 BEA AquaLogic Commerce Services Deployment Guide
class="com.elasticpath.service.catalogview.impl.ProductViewServiceImp
l">
<property name="elasticPath">
<ref bean="elasticPath" />
</property>
<property name="productService">
<ref bean="productService" />
</property>
<property name="productRetrieveStrategy">
<!-- Specifiy the bean id of the caching strategy
to be used here -->
<ref bean="noCachingProductRetrieveSrategy" />
</property>
</bean>
To change the caching strategy, find all instances where the current strategy is referenced by
bean id as shown above and change the id to the id of new strategy you wish to use.
Caching Strategies
The available caching strategies and their bean ids that are to be set in serviceSF.xml are
described in the following sections.
NoCachingProductRetrieveStrategy
This strategy always retrieves products from the database. Retrieved products are passed through
the rules engine.
The bean id for this strategy is "noCachingProductRetrieveSrategy"
SingleCachingProductRetrieveStrategy
This strategy retrieves a product from the database, executes rules on it, and then caches this
single instance of the product. On all subsequent requests for the product, the single cached
instance is returned. Because only a single instance of the product is cached, this strategy cannot
be used in combination with promotion rules that compute different prices for different
customers.
The bean id for this strategy is "singleCachingProductRetrieveStrategy"
RefreshableCachedProductRetrieveStrategy
This strategy is an extension of the SingleCachingProductRetrieveStrategy that allows the cached
copy of a product to be periodically refreshed from the database. Since products in the cache can