Using a custom cache configuration
[fleXive] uses JBoss Cache
for caching structural information as well as contents. To change the default configuration that affects e.g. how many content instances are cached in-memory, there are two approached:
JBoss AS
On JBoss AS, you can manually deploy the cache and thus fully control its configuration. The reference documentation
describes the required steps to deploy your own cache instance.
Other Application Servers
On other application servers, [fleXive] uses an embedded instance of JBoss Cache. The default configuration is stored in flexive-ejb.jar/embeddedJBossCacheConfig.xml.
To override the configuration file, you can set the system property flexive.cache.config and point it to your own configuration file (that must be available either from the file system or from the classpath). How to set the system property depends on the application server, in JBoss you can pass it on the command line (-Dflexive.cache.config=...), in Glassfish you should set it in the administration console.