<?xml version="1.0" encoding="ISO-8859-1"?>
<Repository>
  <!-- The filesystem element represents virtual filesystem implementation that would be 
  used for storing global - data that is applicable at level of repository, such as 
  registered namespace, custom node types, etc. Apache Jackrabbit provides a few 
  options to store this data -->
  <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
    <param name="path" value="${rep.home}/repository"/>
  </FileSystem>
  
  <!-- The security element contains security configuration information for this repository -->
  <Security appName="cu">
    <AccessManager class="org.apache.jackrabbit.core.security.simple.SimpleAccessManager"/>
    <LoginModule class="org.apache.jackrabbit.core.security.simple.SimpleLoginModule">
      <param name="anonymousId" value="anonymous"/>
    </LoginModule>
  </Security>
  
  <!-- This element holds configuration that is common across all workspaces in that repository. -->
  <Workspaces rootPath="${rep.home}/workspaces" defaultWorkspace="default"/>

  <!-- This element represents the default template for all workspaces in this repository.  -->
  <Workspace name="${wsp.name}">
    <!-- configures the virtual filesystem that should be used for storing data related to this workspace -->
    <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
      <param name="path" value="${wsp.home}"/>
    </FileSystem>

    <!-- indicates how you want to persist content of this workspace -->
    <!-- XMPersistenceManager used in old impl is deprecated now; using derby -->
    <PersistenceManager class="org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager">
          <param name="url" value="jdbc:derby:${rep.home}/db;create=true"/>
          <param name="schemaObjectPrefix" value="version_"/>
      </PersistenceManager>
  </Workspace>  
  
    <!--
        Configures the versioning
    -->
    <Versioning rootPath="${rep.home}/version">
      <!--
          Configures the filesystem to use for versioning for the respective
          persistence manager
      -->
      <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
          <param name="path" value="${rep.home}/version"/>
      </FileSystem>
      
      <!--
          Configures the persistence manager to be used for persisting version state.
          Please note that the current versioning implementation is based on
          a 'normal' persistence manager, but this could change in future
          implementations.
      -->
      <PersistenceManager class="org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager">
          <param name="url" value="jdbc:derby:${rep.home}/version/db;create=true"/>
          <param name="schemaObjectPrefix" value="version_"/>
      </PersistenceManager>
    </Versioning>
    
    <DataStore class="org.apache.jackrabbit.core.data.db.DbDataStore">
        <param name="url" value="jdbc:derby:${rep.home}/version/db-store;create=true"/>
        <param name="databaseType" value="derby"/>
        <param name="driver" value="org.apache.derby.jdbc.EmbeddedDriver"/>
        <param name="minRecordLength" value="512"/>
        <param name="maxConnections" value="3"/>
        <param name="copyWhenReading" value="true"/>
        <param name="tablePrefix" value=""/>
        <param name="schemaObjectPrefix" value=""/>
    </DataStore>
  
</Repository>