Details
-
Bug
-
Resolution: Done
-
Blocker
-
2.5.0.Final
-
None
Description
The modeshape-config.xml in ModeShape's JBoss AS Kit should specify a JDBC data source rather than use the InMemory source.
<!-- Define the sources used by the repository (or repositories) to store and access the content --> <mode:sources jcr:primaryType="nt:unstructured"> <mode:source jcr:name="store" mode:classname="org.modeshape.connector.store.jpa.JpaSource" mode:dataSourceJndiName="java:/DefaultDS" mode:model="Simple" mode:dialect="org.hibernate.dialect.HSQLDialect" mode:referentialIntegrityEnforced="true" mode:largeValueSizeInBytes="10000" mode:retryLimit="3" mode:compressData="false" mode:predefinedWorkspaceNames="default,system" mode:showSql="false" mode:autoGenerateSchema="update" mode:creatingWorkspacesAllowed="true" mode:defaultWorkspaceName="default" /> </mode:sources>
Also, the repository should be set up with the option to store the system workspace in the source.
<!-- Define the options for the JCR repository, using camelcase version of JcrRepository.Option names--> <mode:options jcr:primaryType="options"> <!-- Explicitly specify the "system" workspace in the "store" source. --> <mode:option jcr:name="systemSourceName" mode:value="system@store"/> </mode:options>