Skip to end of metadata
Go to start of metadata

Stores all repository data on disk, in a configured location using H2's MVStore API.

Users coming from ModeShape 3 and 4 which had their data stored anywhere except in a relational DB should opt for this store.

This store cannot be used when clustering

Configuration

JSON

The persistent store can be easily configured like so:

JSON configuration

and will store data in the target/persistent_repository/modeshape.repository file relative to the current running directory of the JVM. You can also use an absolute path with or without the help of environment variables. For example:

JSON configuration

will store the data in a file called modeshape.repository inside the value of the folder ${java.io.tmpdir}/modeshape

JBoss AS

If you're using the JBoss AS kit, you configure the file system persistence like so:

JBoss AS configuration

which will store the data in the default location of ${jboss.server.data.dir}/modeshape/<repositoryName>/modeshape.repository

or you can explicitly define the place where to store the data:

JBoss AS configuration

Attributes

The list of attributes supported by this store is:

Name Required Configuration Description
path yes (for the JSON config) JSON and JBoss AS the path on disk where the repository data should be stored
compress no JSON and JBoss AS whether store data should be compressed or not. Defaults to true
Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.