cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Register custom region cache for visibility in hac/cache

Former Member
0 Likes
845

Hey everybody,

I have created a new cache Region:

 <bean name="sampleCacheRegion" class="de.hybris.platform.regioncache.region.impl.EHCacheRegion">
         <constructor-arg name="name" value="sampleCacheRegion" />
         <constructor-arg name="maxEntries" value="50000" />
         <property name="handledTypes">
             <array>
                 <value>ALL_TYPES</value>
             </array>
         </property>
 </bean>

Now I want to see the region in the hac under Montoring -> Cache. To reach this I register the custom region with this:

 <bean id="sampleCacheRegionRegistrar" class="de.hybris.platform.regioncache.region.CacheRegionRegistrar" c:region-ref="sampleCacheRegion" />
 

But it doesn't work. Did I forget something?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member

Make sure add your cache spring configuration to global context, see below example

Example: Add below in custom extension project.properties

training.application-context=training-spring.xml

training.global-context=training-cache-spring.xml

Former Member
0 Likes

Hi . Did u find any solution? I have same problem.