Hi,
I am using Ecache 3.X and using the JSR API. I want to improve the max-object-graph-size because I have some big objects and I can't find how to write it down in my XML Configuration.
I tried :
max-object-graph-size
and
<sizeOfPolicy maxDepth="10000" maxDepthExceededBehavior="abort"/>
I think maybe JSR doesn't support this, do you have any workaround other than the @IgnoreSizeOf tag?
Here's is the last configuration that I tried :
<?xml version='1.0' encoding='utf-8'?>
<config xmlns:xsi='
http://www.w3.org/2001/XMLSchema-instance' xmlns='
http://www.ehcache.org/v3' xmlns:jsr107='
http://www.ehcache.org/v3/jsr107'
xsi:schemaLocation="
http://www.ehcache.org/v3 http://www.ehcache.org/schema/ehcache-core-3.0.xsd http://www.ehcache.org/v3/jsr107 http://www.ehcache.org/schema/ehcache-107-ext-3.0.xsd">
<service>
<jsr107:defaults default-template="proxyCache" enable-management="false" enable-statistics="false" />
</service>
<!-- By reference small cache -->
<cache-template name="proxyCache">
<key-type copier="org.ehcache.impl.copy.IdentityCopier">java.lang.String</key-type>
<value-type copier="org.ehcache.impl.copy.IdentityCopier">com.xxx.xxx.xxx.cADO</value-type>
<expiry>
<tti unit="seconds">60</tti>
</expiry>
<heap unit="MB">50</heap>
<max-object-graph-size>10000</max-object-graph-size>
</cache-template>
<cache alias="serverCache">
<key-type>java.lang.String</key-type>
<value-type>com.xxx.xxx.xxx.cADO</value-type>
<expiry>
<tti unit="minutes">5</tti>
</expiry>
<heap unit="MB">500</heap>
<max-object-graph-size>10000</max-object-graph-size>
<jsr107:mbeans enable-management="false" enable-statistics="false" />
</cache>
</config>