Spring Framework Version 3.1 introduced
a new cache abstraction. With this new abstraction, you can transparently
add caching to an existing Spring application. You can use WebSphere® eXtreme Scale as the cache provider
for the cache abstraction.
-Djava.endorsed.dirs=wxs_root/lib/endorsed
<bean id="wxsCSDomain" class="com.ibm.websphere.objectgrid.spring.ObjectGridCatalogServiceDomainBean"
p:catalog-service-endpoints ="localhost:2809" />
<bean id="wxsGridClient" class="com.ibm.websphere.objectgrid.spring.ObjectGridClientBean"
p:catalog-service-domain-ref="wxsCSDomain" />
<bean id="cacheManager" class="org.springframework.cache.support.SimpleCacheManager">
<property name="caches">
<set>
<bean class="com.ibm.websphere.objectgrid.spring.ObjectGridCache"
p:name="default"
p:object-grid-client-ref="wxsGridClient" />
<bean class="com.ibm.websphere.objectgrid.spring.ObjectGridCache"
p:name="books"
p:object-grid-client-ref="wxsGridClient" />
</set>
</property>
</bean>