views:

375

answers:

2

Hi, I'm migrating a Hibernate application's cache from EHCache to JBoss TreeCache. I'm trying to find how to configure the equivalent to maxElementsOnDisk to limit the cache size on disk, but I couldn't find anything similar to configure in a FileCacheLoader with passivation activated.

Thanks

+2  A: 

This page seems to imply that the correct configuration element is:

<attribute name="MaxCapacity">20000</attribute>

However, I've only ever used EHCache myself.

Mat Mannion
Thanks, but this parameter is not accepted anymore in the JBossCache version I'm working with (1.4.1)
Guillermo Vasconcelos
A: 

In the version I am working on (JBossCache 1.4.1), it looks like it is not possible to configure this parameter.

Guillermo Vasconcelos