Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-1164

ModeShape configuration in the JBoss Kit should store data in JDBC data source rather than in-memory

    XMLWordPrintable

Details

    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>
      

      Attachments

        Activity

          People

            van.halbert Van Halbert (Inactive)
            rhauch Randall Hauch (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: