Log In | Sign Up   View a printable version of the current page.
  Dashboard > [fleXive] > ... > How-Tos > Use a custom cache configuration

Added by Daniel Lichtenberger, last edited by Daniel Lichtenberger on May 06, 2009
Labels: 
(None)

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.

Site running on a free Atlassian Confluence Open Source Project License granted to [fleXive] . Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.6.1 Build:#916 Nov 09, 2007) - Bug/feature request - Contact Administrators