1 <?xml version="1.0"?>
\r
3 Licensed to the Apache Software Foundation (ASF) under one or more
\r
4 contributor license agreements. See the NOTICE file distributed with
\r
5 this work for additional information regarding copyright ownership.
\r
6 The ASF licenses this file to You under the Apache License, Version 2.0
\r
7 (the "License"); you may not use this file except in compliance with
\r
8 the License. You may obtain a copy of the License at
\r
10 http://www.apache.org/licenses/LICENSE-2.0
\r
12 Unless required by applicable law or agreed to in writing, software
\r
13 distributed under the License is distributed on an "AS IS" BASIS,
\r
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
15 See the License for the specific language governing permissions and
\r
16 limitations under the License.
\r
19 <!DOCTYPE Repository
\r
20 PUBLIC "-//The Apache Software Foundation//DTD Jackrabbit 2.0//EN"
\r
21 "http://jackrabbit.apache.org/dtd/repository-2.0.dtd">
\r
23 <!-- Example Repository Configuration File
\r
25 - org.apache.jackrabbit.core.config.RepositoryConfigTest.java
\r
30 virtual file system where the repository stores global state
\r
31 (e.g. registered namespaces, custom node types, etc.)
\r
34 <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
\r
35 <param name="path" value="${rep.home}/repository"/>
\r
38 <FileSystem class="org.apache.jackrabbit.core.fs.db.DerbyFileSystem">
\r
39 <param name="url" value="jdbc:derby:${rep.home}/db;create=true"/>
\r
40 <param name="schemaObjectPrefix" value="rep_"/>
\r
43 data store configuration
\r
45 <DataStore class="org.apache.jackrabbit.core.data.FileDataStore">
\r
46 <param name="path" value="${wiki.root}/${party.name}/datastore"/>
\r
47 <param name="minRecordLength" value="1024"/>
\r
51 security configuration
\r
53 <Security appName="Jackrabbit">
\r
56 class: FQN of class implementing the JackrabbitSecurityManager interface
\r
58 <SecurityManager class="org.apache.jackrabbit.core.DefaultSecurityManager" workspaceName="security">
\r
61 class: FQN of class implementing the WorkspaceAccessManager interface
\r
63 <!-- <WorkspaceAccessManager class="..."/> -->
\r
64 <WorkspaceAccessManager class="org.apache.jackrabbit.core.security.simple.SimpleWorkspaceAccessManager" />
\r
65 <!-- <param name="config" value="${rep.home}/security.xml"/> -->
\r
70 class: FQN of class implementing the AccessManager interface
\r
73 <AccessManager class="org.apache.jackrabbit.core.security.DefaultAccessManager">
\r
75 <AccessManager class="org.apache.jackrabbit.core.security.simple.SimpleAccessManager">
\r
76 <!-- <param name="config" value="${rep.home}/access.xml"/> -->
\r
80 <LoginModule class="org.apache.jackrabbit.core.security.authentication.DefaultLoginModule">
\r
82 <LoginModule class="com.sun.security.auth.module.NTLoginModule">
\r
84 anonymous user name ('anonymous' is the default value)
\r
90 location of workspaces root directory and name of default workspace
\r
92 <Workspaces rootPath="${rep.home}/workspaces" defaultWorkspace="default"/>
\r
94 workspace configuration template:
\r
95 used to create the initial workspace if there's no workspace yet
\r
97 <Workspace name="${wsp.name}">
\r
99 virtual file system of the workspace:
\r
100 class: FQN of class implementing the FileSystem interface
\r
103 <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
\r
104 <param name="path" value="${wsp.home}"/>
\r
107 <FileSystem class="org.apache.jackrabbit.core.fs.db.DerbyFileSystem">
\r
108 <param name="url" value="jdbc:derby:${wsp.home}/db;create=true"/>
\r
109 <param name="schemaObjectPrefix" value="wsp_"/>
\r
112 persistence manager of the workspace:
\r
113 class: FQN of class implementing the PersistenceManager interface
\r
115 <PersistenceManager class="org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager">
\r
117 <param name="url" value="jdbc:derby://192.168.123.25:1527/moxkiriyadb/workspace/db;create=true"/>
\r
118 <param name="driver" value="org.apache.derby.jdbc.ClientDriver"/>
\r
120 <param name="url" value="${dbserver.url}:${dbserver.port}/moxkiriyadb/${party.name}/workspace/db;create=true"/>
\r
121 <param name="driver" value="${jdbc.driver}"/>
\r
122 <param name="schemaObjectPrefix" value="${wsp.name}_"/>
\r
123 <param name="externalBLOBs" value="true"/>
\r
124 </PersistenceManager>
\r
126 Search index and the file system it uses.
\r
127 class: FQN of class implementing the QueryHandler interface
\r
129 <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
\r
130 <param name="path" value="${wsp.home}/index"/>
\r
131 <param name="supportHighlighting" value="true"/>
\r
136 Configures the versioning
\r
138 <Versioning rootPath="${rep.home}/version">
\r
140 Configures the filesystem to use for versioning for the respective
\r
141 persistence manager
\r
144 <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
\r
145 <param name="path" value="${rep.home}/version" />
\r
148 <FileSystem class="org.apache.jackrabbit.core.fs.db.DerbyFileSystem">
\r
149 <param name="url" value="jdbc:derby:${rep.home}/version/db;create=true"/>
\r
150 <param name="schemaObjectPrefix" value="version_"/>
\r
153 Configures the persistence manager to be used for persisting version state.
\r
154 Please note that the current versioning implementation is based on
\r
155 a 'normal' persistence manager, but this could change in future
\r
158 <PersistenceManager class="org.apache.jackrabbit.core.persistence.pool.DerbyPersistenceManager">
\r
159 <param name="url" value="${dbserver.url}:${dbserver.port}/moxkiriyadb/${party.name}/version/db;create=true"/>
\r
160 <param name="driver" value="${jdbc.driver}"/>
\r
161 <param name="schemaObjectPrefix" value="version_"/>
\r
162 <param name="externalBLOBs" value="true"/>
\r
163 </PersistenceManager>
\r
167 Search index for content that is shared repository wide
\r
168 (/jcr:system tree, contains mainly versions)
\r
170 <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
\r
171 <param name="path" value="${rep.home}/repository/index"/>
\r
172 <param name="supportHighlighting" value="true"/>
\r
176 Run with a cluster journal
\r
178 <Cluster id="${cluster.id}">
\r
180 <Journal class="org.apache.jackrabbit.core.journal.FileJournal">
\r
181 <param name="revision" value="${rep.home}/revision.log" />
\r
182 <param name="directory" value="${wiki.root}/${party.name}/journal" />
\r
185 <Journal class="org.apache.jackrabbit.core.journal.DatabaseJournal">
\r
186 <param name="revision" value="${rep.home}/revision.log" />
\r
187 <param name="driver" value="${jdbc.driver}" />
\r
188 <param name="url" value="${dbserver.url}:${dbserver.port}/moxkiriyadb/${party.name}/journal/db;create=true"/>
\r
189 <param name="databaseType" value="derby"/>
\r