This content has been marked as final.
Show 2 replies
-
1. Re: Cache config at Jboss AS7
pferraro Apr 6, 2012 1:33 PM (in response to hannelita)The <cache/> element of the ejb3 subsystem is described in the schema:
Here's the equivalent configuration for the @CacheConfig annotation above:
<caches>
<cache name="my-cache" passivation-store-ref="my-store"/>
</caches>
<passivation-stores>
<file-passivation-store name="my-store" max-size="50" idle-timeout="120" idle-timeout-unit="SECONDS"/>
</passivation-stores>
Then annotate your bean accordingly:
@Cache("my-cache")
@StatefulTimeout(value = 360, unit = TimeUnit.SECONDS)
-