Skip to content

Commit

Permalink
jackrabbit configuration to use DbFileSystem
Browse files Browse the repository at this point in the history
  • Loading branch information
GeCherry committed Aug 1, 2024
1 parent f274185 commit 43a4117
Showing 1 changed file with 63 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,17 @@
<param name="schemaObjectPrefix" value="fs_repos_"/>
</FileSystem>
-->

<FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
<param name="path" value="${rep.home}/repository"/>
<FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
<param name="driver" value="org.postgresql.Driver"/>
<param name="url" value="jdbc:postgresql://localhost:25432/jackrabbit"/>
<param name="user" value="jcr_user"/>
<param name="password" value="password"/>
<param name="schema" value="postgresql"/>
<param name="schemaObjectPrefix" value="fs_repos_"/>
</FileSystem>
<!--<FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
<param name="path" value="${rep.home}/repository"/>
</FileSystem>-->

<!--
data store configuration
Expand Down Expand Up @@ -131,9 +138,20 @@
<param name="schemaObjectPrefix" value="ds_repos_"/>
</DataStore>
-->
<DataStore class="org.apache.jackrabbit.core.data.db.DbDataStore">
<param name="url" value="jdbc:postgresql://localhost:25432/jackrabbit"/>
<param name="driver" value="org.postgresql.Driver"/>
<param name="user" value="jcr_user"/>
<param name="password" value="password"/>
<param name="databaseType" value="postgresql"/>
<param name="minRecordLength" value="1024"/>
<param name="maxConnections" value="3"/>
<param name="copyWhenReading" value="true"/>
<param name="tablePrefix" value=""/>
<param name="schemaObjectPrefix" value="ds_repos_"/>
</DataStore>


<DataStore class="org.apache.jackrabbit.core.data.FileDataStore"/>
<!--<DataStore class="org.apache.jackrabbit.core.data.FileDataStore"/>-->

<!--
security configuration
Expand Down Expand Up @@ -229,11 +247,19 @@
<param name="schemaObjectPrefix" value="fs_ws_"/>
</FileSystem>
-->
<FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
<param name="driver" value="org.postgresql.Driver"/>
<param name="url" value="jdbc:postgresql://localhost:25432/jackrabbit"/>
<param name="user" value="jcr_user"/>
<param name="password" value="password"/>
<param name="schema" value="postgresql"/>
<param name="schemaObjectPrefix" value="fs_ws_"/>
</FileSystem>


<FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
<!--<FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
<param name="path" value="${wsp.home}"/>
</FileSystem>
</FileSystem>-->


<!--
Expand Down Expand Up @@ -279,11 +305,18 @@
</PersistenceManager>
-->


<PersistenceManager class="org.apache.jackrabbit.core.persistence.pool.H2PersistenceManager">
<PersistenceManager class="org.apache.jackrabbit.core.persistence.bundle.PostgreSQLPersistenceManager">
<param name="url" value="jdbc:postgresql://localhost:25432/jackrabbit"/>
<param name="driver" value="org.postgresql.Driver"/>
<param name="user" value="jcr_user"/>
<param name="password" value="password"/>
<param name="schema" value="postgresql"/>
<param name="schemaObjectPrefix" value="${wsp.name}_pm_ws_"/>
</PersistenceManager>
<!--<PersistenceManager class="org.apache.jackrabbit.core.persistence.pool.H2PersistenceManager">
<param name="url" value="jdbc:h2:${wsp.home}/db"/>
<param name="schemaObjectPrefix" value="${wsp.name}_"/>
</PersistenceManager>
</PersistenceManager>-->

<!--
Search index and the file system it uses.
Expand Down Expand Up @@ -346,10 +379,17 @@
<param name="schemaObjectPrefix" value="fs_ver_"/>
</FileSystem>
-->

<FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
<param name="path" value="${rep.home}/version" />
<FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
<param name="driver" value="org.postgresql.Driver"/>
<param name="url" value="jdbc:postgresql://localhost:25432/jackrabbit"/>
<param name="user" value="jcr_user"/>
<param name="password" value="password"/>
<param name="schema" value="postgresql"/>
<param name="schemaObjectPrefix" value="fs_ver_"/>
</FileSystem>
<!--<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.
Expand Down Expand Up @@ -395,11 +435,18 @@
<param name="schemaObjectPrefix" value="pm_ver_"/>
</PersistenceManager>
-->

<PersistenceManager class="org.apache.jackrabbit.core.persistence.pool.H2PersistenceManager">
<PersistenceManager class="org.apache.jackrabbit.core.persistence.bundle.PostgreSQLPersistenceManager">
<param name="url" value="jdbc:postgresql://localhost:25432/jackrabbit"/>
<param name="driver" value="org.postgresql.Driver"/>
<param name="user" value="jcr_user"/>
<param name="password" value="password"/>
<param name="schema" value="postgresql"/>
<param name="schemaObjectPrefix" value="pm_ver_"/>
</PersistenceManager>
<!--<PersistenceManager class="org.apache.jackrabbit.core.persistence.pool.H2PersistenceManager">
<param name="url" value="jdbc:h2:${rep.home}/version/db"/>
<param name="schemaObjectPrefix" value="version_"/>
</PersistenceManager>
</PersistenceManager>-->

</Versioning>

Expand Down

0 comments on commit 43a4117

Please sign in to comment.