JBoss Community Archive (Read Only)

ModeShape 5

memory persistence

This is the default persistence setting in ModeShape 5 and doesn't require any explicit configuration. Any repository without an explicit persistence configuration will use this and will only hold onto data only during the lifetime of the process.

For obvious reasons, it's not suitable in production systems and should only be used for testing and prototyping.

Configuration

If you want, you can explicitly opt to configure this type of persistence in the JSON configuration like so:

repository.json
{
    "name" : "test",    
    "storage" : {
        "persistence": {
            "type": "mem"
        }
    }
}

Simply omitting it will have the same effect:

repository.json
{
    "name" : "test"
}
JBoss.org Content Archive (Read Only), exported from JBoss Community Documentation Editor at 2020-03-11 12:12:42 UTC, last content change 2016-04-08 12:32:17 UTC.