jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rocco Russo" <rocco.ru...@eng.it>
Subject R: R: jackrabbit cluster
Date Tue, 20 May 2008 08:50:13 GMT
Hi, Dominique 

No workplace.xml around.

I show you my test case step by step

1a) I have a clear shared repository (db) without tables. The db is
installed on machine 1.

1b)	I have repository folder on machine 1 and machine 2 with only
repository.xml file.

2) I start server 2 (192.168.11.170) and all tables are created. The
following folder/file are also created in repository folder:
	 repository
	 workspaces
	 .lock
	 revision 
	
	The log message indicates that the repository is started:

20.05.2008 10:00:12 *INFO * RepositoryImpl: Starting repository...
(RepositoryImpl.java, line 233)
20.05.2008 10:00:14 *INFO * NodeTypeRegistry: no custom node type
definitions found (NodeTypeRegistry.java, line 840)
20.05.2008 10:00:14 *INFO * DatabaseJournal: DatabaseJournal initialized.
(DatabaseJournal.java, line 211)
20.05.2008 10:00:14 *INFO * DatabasePersistenceManager: Database: MySQL /
5.0.24-community-nt (DatabasePersistenceManager.java, line 200)
20.05.2008 10:00:14 *INFO * DatabasePersistenceManager: Driver: MySQL-AB
JDBC Driver / mysql-connector-java-5.0.7 ( $Date: 2007-03-09 22:13:57 +0100
(Fri, 09 Mar 2007) $, $Revision: 6341 $ ) (DatabasePersistenceManager.java,
line 201)
20.05.2008 10:00:15 *INFO * RepositoryImpl: initializing workspace
'default'... (RepositoryImpl.java, line 1709)
20.05.2008 10:00:15 *INFO * DatabasePersistenceManager: Database: MySQL /
5.0.24-community-nt (DatabasePersistenceManager.java, line 200)
20.05.2008 10:00:15 *INFO * DatabasePersistenceManager: Driver: MySQL-AB
JDBC Driver / mysql-connector-java-5.0.7 ( $Date: 2007-03-09 22:13:57 +0100
(Fri, 09 Mar 2007) $, $Revision: 6341 $ ) (DatabasePersistenceManager.java,
line 201)
20.05.2008 10:00:15 *INFO * RepositoryImpl: workspace 'default' initialized
(RepositoryImpl.java, line 1712)
20.05.2008 10:00:15 *INFO * ClusterNode: not started: namespace operation
ignored. (ClusterNode.java, line 381)
20.05.2008 10:00:15 *INFO * ClusterNode: not started: namespace operation
ignored. (ClusterNode.java, line 381)
20.05.2008 10:00:15 *INFO * ClusterNode: not started: namespace operation
ignored. (ClusterNode.java, line 381)
20.05.2008 10:00:16 *INFO * LocalFileSystem: LocalFileSystem initialized at
path
C:\servers\tomcat-5.5.26-nodo2\webapps\jackrabbit-webapp-1.4\repository\repo
sitory\index (LocalFileSystem.java, line 166)
20.05.2008 10:00:20 *INFO * SearchIndex: Index initialized:
C:\servers\tomcat-5.5.26-nodo2\webapps\jackrabbit-webapp-1.4\repository/repo
sitory/index Version: 2 (SearchIndex.java, line 454)
20.05.2008 10:00:20 *INFO * LocalFileSystem: LocalFileSystem initialized at
path
C:\servers\tomcat-5.5.26-nodo2\webapps\jackrabbit-webapp-1.4\repository\work
spaces\default\index (LocalFileSystem.java, line 166)
20.05.2008 10:00:20 *INFO * SearchIndex: Index initialized:
C:\servers\tomcat-5.5.26-nodo2\webapps\jackrabbit-webapp-1.4\repository\work
spaces\default/index Version: 2 (SearchIndex.java, line 454)
20.05.2008 10:00:20 *INFO * RepositoryImpl: Repository started
(RepositoryImpl.java, line 343)
20.05.2008 10:00:20 *INFO * RepositoryStartupServlet: Repository bound via
RMI with name: //192.168.11.170:11099/jackrabbit.repository
(RepositoryStartupServlet.java, line 562)
20.05.2008 10:00:20 *INFO * RepositoryStartupServlet: Repository bound to
JNDI with name: jackrabbit.repository (RepositoryStartupServlet.java, line
452)
20.05.2008 10:00:20 *INFO * RepositoryStartupServlet:
RepositoryStartupServlet initialized. (RepositoryStartupServlet.java, line
241)
20.05.2008 10:00:20 *INFO * RepositoryAccessServlet: RepositoryAccessServlet
initialized. (RepositoryAccessServlet.java, line 98)
20.05.2008 10:00:20 *INFO * SimpleWebdavServlet: resource-path-prefix =
'/repository' (SimpleWebdavServlet.java, line 149)
20.05.2008 10:00:20 *INFO * SimpleWebdavServlet: WWW-Authenticate header =
'Basic realm="Jackrabbit Webdav Server"' (SimpleWebdavServlet.java, line
155) 


There are three lines ambiguous for me about ClusterNode:
20.05.2008 10:00:15 *INFO * ClusterNode: not started: namespace operation
ignored. (ClusterNode.java, line 381)
20.05.2008 10:00:15 *INFO * ClusterNode: not started: namespace operation
ignored. (ClusterNode.java, line 381)
20.05.2008 10:00:15 *INFO * ClusterNode: not started: namespace operation
ignored. (ClusterNode.java, line 381)

3) I see the db and the nodes created in table j_pm_default_Node are:

 		cafebabe-cafe-babe-cafe-babecafebabe
 		deadbeef-cafe-babe-cafe-babecafebabe

		no entry in j_pm_default_binvalue
		
4) I start server 1 (192.168.11.240)  The log message indicates that the
repository is started:

20.05.2008 10:10:26 *INFO * RepositoryImpl: Starting repository...
(RepositoryImpl.java, line 233)
20.05.2008 10:10:27 *INFO * NodeTypeRegistry: no custom node type
definitions found (NodeTypeRegistry.java, line 840)
20.05.2008 10:10:27 *INFO * DatabaseJournal: DatabaseJournal initialized.
(DatabaseJournal.java, line 211)
20.05.2008 10:10:27 *INFO * DatabasePersistenceManager: Database: MySQL /
5.0.24-community-nt (DatabasePersistenceManager.java, line 200)
20.05.2008 10:10:27 *INFO * DatabasePersistenceManager: Driver: MySQL-AB
JDBC Driver / mysql-connector-java-5.0.7 ( $Date: 2007-03-09 22:13:57 +0100
(Fri, 09 Mar 2007) $, $Revision: 6341 $ ) (DatabasePersistenceManager.java,
line 201)
20.05.2008 10:10:28 *INFO * RepositoryImpl: initializing workspace
'default'... (RepositoryImpl.java, line 1709)
20.05.2008 10:10:28 *INFO * DatabasePersistenceManager: Database: MySQL /
5.0.24-community-nt (DatabasePersistenceManager.java, line 200)
20.05.2008 10:10:28 *INFO * DatabasePersistenceManager: Driver: MySQL-AB
JDBC Driver / mysql-connector-java-5.0.7 ( $Date: 2007-03-09 22:13:57 +0100
(Fri, 09 Mar 2007) $, $Revision: 6341 $ ) (DatabasePersistenceManager.java,
line 201)
20.05.2008 10:10:28 *INFO * RepositoryImpl: workspace 'default' initialized
(RepositoryImpl.java, line 1712)
20.05.2008 10:10:30 *INFO * LocalFileSystem: LocalFileSystem initialized at
path
C:\servers\tomcat-5.5.26-nodo1\webapps\jackrabbit-webapp-1.4\repository\repo
sitory\index (LocalFileSystem.java, line 166)
20.05.2008 10:10:32 *INFO * SearchIndex: Index initialized:
C:\servers\tomcat-5.5.26-nodo1\webapps\jackrabbit-webapp-1.4\repository/repo
sitory/index Version: 2 (SearchIndex.java, line 454)
20.05.2008 10:10:32 *INFO * LocalFileSystem: LocalFileSystem initialized at
path
C:\servers\tomcat-5.5.26-nodo1\webapps\jackrabbit-webapp-1.4\repository\work
spaces\default\index (LocalFileSystem.java, line 166)
20.05.2008 10:10:32 *INFO * SearchIndex: Index initialized:
C:\servers\tomcat-5.5.26-nodo1\webapps\jackrabbit-webapp-1.4\repository\work
spaces\default/index Version: 2 (SearchIndex.java, line 454)
20.05.2008 10:10:32 *INFO * RepositoryImpl: Repository started
(RepositoryImpl.java, line 343)
20.05.2008 10:10:32 *INFO * RepositoryStartupServlet: Repository bound via
RMI with name: //192.168.11.240:11099/jackrabbit.repository
(RepositoryStartupServlet.java, line 562)
20.05.2008 10:10:32 *INFO * RepositoryStartupServlet: Repository bound to
JNDI with name: jackrabbit.repository (RepositoryStartupServlet.java, line
452)
20.05.2008 10:10:32 *INFO * RepositoryStartupServlet:
RepositoryStartupServlet initialized. (RepositoryStartupServlet.java, line
241)
20.05.2008 10:10:32 *INFO * RepositoryAccessServlet: RepositoryAccessServlet
initialized. (RepositoryAccessServlet.java, line 98)
20.05.2008 10:10:32 *INFO * SimpleWebdavServlet: resource-path-prefix =
'/repository' (SimpleWebdavServlet.java, line 149)
20.05.2008 10:10:32 *INFO * SimpleWebdavServlet: WWW-Authenticate header =
'Basic realm="Jackrabbit Webdav Server"' (SimpleWebdavServlet.java, line
155)



5) I upload a binary file from server 2 using a webdav client.
(DAVExplorer). 

	On server 1 the logs say:
		20.05.2008 10:14:09 *INFO * ClusterNode: Appended revision:
1 (ClusterNode.java, line 616)


	On server 2 the logs say:
		20.05.2008 10:14:17 *INFO * ClusterNode: Processing
revision: 1 (ClusterNode.java, line 963)
		20.05.2008 10:14:17 *INFO * SearchManager: Node no longer
available f3eecb87-add1-4091-aadd-b29d37490a60, skipped.
(SearchManager.java, line 467)
		20.05.2008 10:14:17 *INFO * SearchManager: Node no longer
available ad23c6da-558a-41ae-9a6b-8e8a5f873967, skipped.
(SearchManager.java, line 467)
		20.05.2008 10:14:17 *INFO * AbstractJournal: Synchronized to
revision: 1 (AbstractJournal.java, line 213)

6) I see the db and the new nodes added in table j_pm_default_Node are:

 		ad23c6da-558a-41ae-9a6b-8e8a5f873967
 		f3eecb87-add1-4091-aadd-b29d37490a60

		In j_pm_default_binvalue is added this node:
	
f3eecb87-add1-4091-aadd-b29d37490a60/{http://www.jcp.org/jcr/1.0}data[0]
		
7) I browse the repository from server 2 and I can see the uploaded file.
8) If I browse the repository from server 1, I cannot see the uploaded file.

I cannot understand why these nodes are not visible. In fact if I stop and
start the server 1, now I can see the uploaded file.
What test I have to do to understand the cause of this behaviour?

Thank you very much

Rocco

-----Messaggio originale-----
Da: dpfister@day.com [mailto:dpfister@day.com] Per conto di Dominique
Pfister
Inviato: lunedì 19 maggio 2008 17.33
A: users@jackrabbit.apache.org
Oggetto: Re: R: jackrabbit cluster

Hi Rocco,

your configuration looks fine to me. Are you sure, that there is no
workspace.xml configuration lying around that has a different setting?
I still think that the informational message, indicating that some
nodes are no longer available, actually tells that the content stored
on machine 1 is not visible to machine 2. Did you check what UUID your
added item contains and whether it matches one of the two logged in
the messages?

Kind regards
Dominique

On 5/19/08, Rocco Russo <rocco.russo@eng.it> wrote:
>
>  Hi Dominique,
>  thank you for your ready reply.
>  Sorry for the incorrect report in the first mail (a cut/past mistake). In
my
>  configuration I use a "shared" database installed on the machine 1
>  (192.168.11.240) so web-app 1 must be connected to localhost while the
>  web-app 2 (on machine 2 192.168.11.170) must be connected to
192.168.11.240.
>
>
>  The correct configuration files are reported below. I hope it will be
useful
>  for you. Thanks a lot.
>
>
>  Machine 1
-----------------------------------------------------------------
>
>  <?xml version="1.0"?>
>  <!DOCTYPE Repository PUBLIC "-//The Apache Software Foundation//DTD
>  Jackrabbit 1.4//EN"
>
>  "http://jackrabbit.apache.org/dtd/repository-1.4.dtd">
>  <!-- Example Repository Configuration File -->
>  <Repository>
>
>
>     <!--
>         Database File System (Cluster Configuration)
>
>         This is sample configuration for mysql persistence that can be
used
>  for
>         clustering Jackrabbit. For other databases, change the connection,
>         credentials, and schema settings.
>         -->
>
>         <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
>                 <param name="driver" value="com.mysql.jdbc.Driver"/>
>                 <param name="url"
>
value="jdbc:mysql://localhost:3306/jcr_repo?useUnicode=true&amp;characterEnc
>  oding=UTF-8" />
>                 <param name="user" value="root" />
>                 <param name="password" value="root" />
>                 <param name="schema" value="mysql"/>
>                 <param name="schemaObjectPrefix" value="J_R_FS_"/>
>         </FileSystem>
>
>
>     <!--
>         security configuration
>     -->
>     <Security appName="Jackrabbit">
>         <!--
>             access manager:
>             class: FQN of class implementing the AccessManager interface
>         -->
>         <AccessManager
>  class="org.apache.jackrabbit.core.security.SimpleAccessManager">
>             <!-- <param name="config" value="${rep.home}/access.xml"/> -->
>         </AccessManager>
>
>         <LoginModule
>  class="org.apache.jackrabbit.core.security.SimpleLoginModule">
>            <!-- anonymous user name ('anonymous' is the default value) -->
>            <param name="anonymousId" value="anonymous"/>
>            <!--
>               default user name to be used instead of the anonymous user
>               when no login credentials are provided (unset by default)
>            -->
>            <!-- <param name="defaultUserId" value="superuser"/> -->
>         </LoginModule>
>     </Security>
>
>     <!--
>         location of workspaces root directory and name of default
workspace
>     -->
>     <Workspaces rootPath="${rep.home}/workspaces"
>  defaultWorkspace="default"/>
>     <!--
>         workspace configuration template:
>         used to create the initial workspace if there's no workspace yet
>     -->
>     <Workspace name="${wsp.name}">
>         <!--
>             virtual file system of the workspace:
>             class: FQN of class implementing the FileSystem interface
>         -->
>         <!--
>         <FileSystem
>  class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
>             <param name="path" value="${wsp.home}"/>
>         </FileSystem>
>         -->
>
>
>                 <FileSystem
>  class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
>                                         <param name="driver"
>  value="com.mysql.jdbc.Driver"/>
>                                         <param name="url"
>
value="jdbc:mysql://localhost:3306/jcr_repo?useUnicode=true&amp;characterEnc
>  oding=UTF-8" />
>                                         <param name="user" value="root" />
>                                         <param name="password"
value="root"
>  />
>                                         <param name="schema"
value="mysql"/>
>                                         <param name="schemaObjectPrefix"
>  value="J_FS_${wsp.name}_"/>
>                                 </FileSystem>
>
>         <!--
>             persistence manager of the workspace:
>             class: FQN of class implementing the PersistenceManager
>  interface
>         -->
>         <!-- <PersistenceManager
>
class="org.apache.jackrabbit.core.persistence.bundle.DerbyPersistenceManager
>  ">
>           <param name="url"
value="jdbc:derby:${wsp.home}/db;create=true"/>
>           <param name="schemaObjectPrefix" value="${wsp.name}_"/>
>         </PersistenceManager> -->
>
>         <PersistenceManager
>  class="org.apache.jackrabbit.core.state.db.SimpleDbPersistenceManager">
>                                         <param name="driver"
>  value="com.mysql.jdbc.Driver"/>
>                                         <param name="url"
>
value="jdbc:mysql://localhost:3306/jcr_repo?useUnicode=true&amp;characterEnc
>  oding=UTF-8" />
>                                         <param name="user" value="root" />
>                                         <param name="password"
value="root"
>  />
>                                         <param name="schema"
value="mysql"/>
>                                         <param name="schemaObjectPrefix"
>  value="J_PM_${wsp.name}_" />
>                                         <param name="externalBLOBs"
>  value="false" />
>                         </PersistenceManager>
>
>         <!--
>             Search index and the file system it uses.
>             class: FQN of class implementing the QueryHandler interface
>         -->
>         <SearchIndex
>  class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
>             <param name="path" value="${wsp.home}/index"/>
>             <param name="textFilterClasses"
>
value="org.apache.jackrabbit.extractor.MsWordTextExtractor,org.apache.jackra
>
bbit.extractor.MsExcelTextExtractor,org.apache.jackrabbit.extractor.MsPowerP
>
ointTextExtractor,org.apache.jackrabbit.extractor.PdfTextExtractor,org.apach
>
e.jackrabbit.extractor.OpenOfficeTextExtractor,org.apache.jackrabbit.extract
>
or.RTFTextExtractor,org.apache.jackrabbit.extractor.HTMLTextExtractor,org.ap
>  ache.jackrabbit.extractor.XMLTextExtractor"/>
>             <param name="extractorPoolSize " value="2"/>
>             <param name="supportHighlighting" value="true"/>
>         </SearchIndex>
>     </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> -->
>
>         <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
>                                         <param name="driver"
>  value="com.mysql.jdbc.Driver"/>
>                                         <param name="url"
>
value="jdbc:mysql://localhost:3306/jcr_repo?useUnicode=true&amp;characterEnc
>  oding=UTF-8" />
>                                         <param name="user" value="root" />
>                                         <param name="password"
value="root"
>  />
>                                         <param name="schema"
value="mysql"/>
>                                         <param name="schemaObjectPrefix"
>  value="J_V_FS_"/>
>                                 </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.bundle.DerbyPersistenceManager
>  ">
>           <param name="url"
>  value="jdbc:derby:${rep.home}/version/db;create=true"/>
>           <param name="schemaObjectPrefix" value="version_"/>
>         </PersistenceManager> -->
>         <PersistenceManager
>  class="org.apache.jackrabbit.core.state.db.SimpleDbPersistenceManager">
>                                         <param name="driver"
>  value="com.mysql.jdbc.Driver"/>
>                                         <param name="url"
>
value="jdbc:mysql://localhost:3306/jcr_repo?useUnicode=true&amp;characterEnc
>  oding=UTF-8" />
>                                         <param name="user" value="root" />
>                                         <param name="password"
value="root"
>  />
>                                         <param name="schema"
value="mysql"/>
>                                         <param name="schemaObjectPrefix"
>  value="J_V_PM_" />
>                                         <param name="externalBLOBs"
>  value="false" />
>                                 </PersistenceManager>
>
>     </Versioning>
>
>     <!--
>         Search index for content that is shared repository wide
>         (/jcr:system tree, contains mainly versions)
>     -->
>     <SearchIndex
>  class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
>         <param name="path" value="${rep.home}/repository/index"/>
>         <param name="textFilterClasses"
>
value="org.apache.jackrabbit.extractor.MsWordTextExtractor,org.apache.jackra
>
bbit.extractor.MsExcelTextExtractor,org.apache.jackrabbit.extractor.MsPowerP
>
ointTextExtractor,org.apache.jackrabbit.extractor.PdfTextExtractor,org.apach
>
e.jackrabbit.extractor.OpenOfficeTextExtractor,org.apache.jackrabbit.extract
>
or.RTFTextExtractor,org.apache.jackrabbit.extractor.HTMLTextExtractor,org.ap
>  ache.jackrabbit.extractor.XMLTextExtractor"/>
>         <param name="extractorPoolSize " value="2"/>
>         <param name="supportHighlighting" value="true"/>
>     </SearchIndex>
>
>     <!--
>         Cluster Configuration
>
>         This is sample configuration for mysql persistence that can be
used
>  for
>         clustering Jackrabbit. For other databases, change the
connection,
>         credentials, and schema settings.
>         -->
>
>
>     <Cluster id="node_1">
>                 <Journal
>  class="org.apache.jackrabbit.core.journal.DatabaseJournal">
>                         <param name="revision"
>  value="${rep.home}/revision"/>
>                         <param name="driver"
value="com.mysql.jdbc.Driver"/>
>                         <param name="url"
>
value="jdbc:mysql://localhost:3306/jcr_repo?useUnicode=true&amp;characterEnc
>  oding=UTF-8" />
>                         <param name="user" value="root" />
>                         <param name="password" value="root" />
>                         <param name="schema" value="mysql"/>
>                         <param name="schemaObjectPrefix" value="J_C_"/>
>                 </Journal>
>     </Cluster>
>
>
>  </Repository>
>
>  End
########################################################################
>
>
>  Machine 2
-----------------------------------------------------------------
>
>  <?xml version="1.0"?>
>  <!DOCTYPE Repository PUBLIC "-//The Apache Software Foundation//DTD
>  Jackrabbit 1.4//EN"
>
>  "http://jackrabbit.apache.org/dtd/repository-1.4.dtd">
>  <!-- Example Repository Configuration File -->
>  <Repository>
>
>         <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
>                 <param name="driver" value="com.mysql.jdbc.Driver"/>
>                 <param name="url"
>
value="jdbc:mysql://192.168.11.240:3306/jcr_repo?useUnicode=true&amp;charact
>  erEncoding=UTF-8" />
>                 <param name="user" value="root" />
>                 <param name="password" value="root" />
>                 <param name="schema" value="mysql"/>
>                 <param name="schemaObjectPrefix" value="J_R_FS_"/>
>         </FileSystem>
>
>
>     <!--
>         security configuration
>     -->
>     <Security appName="Jackrabbit">
>         <!--
>             access manager:
>             class: FQN of class implementing the AccessManager interface
>         -->
>         <AccessManager
>  class="org.apache.jackrabbit.core.security.SimpleAccessManager">
>             <!-- <param name="config" value="${rep.home}/access.xml"/> -->
>         </AccessManager>
>
>         <LoginModule
>  class="org.apache.jackrabbit.core.security.SimpleLoginModule">
>            <!-- anonymous user name ('anonymous' is the default value) -->
>            <param name="anonymousId" value="anonymous"/>
>            <!--
>               default user name to be used instead of the anonymous user
>               when no login credentials are provided (unset by default)
>            -->
>            <!-- <param name="defaultUserId" value="superuser"/> -->
>         </LoginModule>
>     </Security>
>
>     <!--
>         location of workspaces root directory and name of default
workspace
>     -->
>     <Workspaces rootPath="${rep.home}/workspaces"
>  defaultWorkspace="default"/>
>     <!--
>         workspace configuration template:
>         used to create the initial workspace if there's no workspace yet
>     -->
>     <Workspace name="${wsp.name}">
>         <!--
>             virtual file system of the workspace:
>             class: FQN of class implementing the FileSystem interface
>         -->
>         <!--
>         <FileSystem
>  class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
>             <param name="path" value="${wsp.home}"/>
>         </FileSystem>
>         -->
>
>
>                 <FileSystem
>  class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
>                                         <param name="driver"
>  value="com.mysql.jdbc.Driver"/>
>                                         <param name="url"
>
value="jdbc:mysql://192.168.11.240:3306/jcr_repo?useUnicode=true&amp;charact
>  erEncoding=UTF-8" />
>                                         <param name="user" value="root" />
>                                         <param name="password"
value="root"
>  />
>                                         <param name="schema"
value="mysql"/>
>                                         <param name="schemaObjectPrefix"
>  value="J_FS_${wsp.name}_"/>
>                                 </FileSystem>
>
>         <!--
>             persistence manager of the workspace:
>             class: FQN of class implementing the PersistenceManager
>  interface
>         -->
>         <!-- <PersistenceManager
>
class="org.apache.jackrabbit.core.persistence.bundle.DerbyPersistenceManager
>  ">
>           <param name="url"
value="jdbc:derby:${wsp.home}/db;create=true"/>
>           <param name="schemaObjectPrefix" value="${wsp.name}_"/>
>         </PersistenceManager> -->
>
>         <PersistenceManager
>  class="org.apache.jackrabbit.core.state.db.SimpleDbPersistenceManager">
>                                         <param name="driver"
>  value="com.mysql.jdbc.Driver"/>
>                                         <param name="url"
>
value="jdbc:mysql://192.168.11.240:3306/jcr_repo?useUnicode=true&amp;charact
>  erEncoding=UTF-8" />
>                                         <param name="user" value="root" />
>                                         <param name="password"
value="root"
>  />
>                                         <param name="schema"
value="mysql"/>
>                                         <param name="schemaObjectPrefix"
>  value="J_PM_${wsp.name}_" />
>                                         <param name="externalBLOBs"
>  value="false" />
>                         </PersistenceManager>
>
>         <!--
>             Search index and the file system it uses.
>             class: FQN of class implementing the QueryHandler interface
>         -->
>         <SearchIndex
>  class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
>             <param name="path" value="${wsp.home}/index"/>
>             <param name="textFilterClasses"
>
value="org.apache.jackrabbit.extractor.MsWordTextExtractor,org.apache.jackra
>
bbit.extractor.MsExcelTextExtractor,org.apache.jackrabbit.extractor.MsPowerP
>
ointTextExtractor,org.apache.jackrabbit.extractor.PdfTextExtractor,org.apach
>
e.jackrabbit.extractor.OpenOfficeTextExtractor,org.apache.jackrabbit.extract
>
or.RTFTextExtractor,org.apache.jackrabbit.extractor.HTMLTextExtractor,org.ap
>  ache.jackrabbit.extractor.XMLTextExtractor"/>
>             <param name="extractorPoolSize " value="2"/>
>             <param name="supportHighlighting" value="true"/>
>         </SearchIndex>
>     </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> -->
>
>         <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
>                                         <param name="driver"
>  value="com.mysql.jdbc.Driver"/>
>                                         <param name="url"
>
value="jdbc:mysql://192.168.11.240:3306/jcr_repo?useUnicode=true&amp;charact
>  erEncoding=UTF-8" />
>                                         <param name="user" value="root" />
>                                         <param name="password"
value="root"
>  />
>                                         <param name="schema"
value="mysql"/>
>                                         <param name="schemaObjectPrefix"
>  value="J_V_FS_"/>
>                                 </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.bundle.DerbyPersistenceManager
>  ">
>           <param name="url"
>  value="jdbc:derby:${rep.home}/version/db;create=true"/>
>           <param name="schemaObjectPrefix" value="version_"/>
>         </PersistenceManager> -->
>         <PersistenceManager
>  class="org.apache.jackrabbit.core.state.db.SimpleDbPersistenceManager">
>                                         <param name="driver"
>  value="com.mysql.jdbc.Driver"/>
>                                         <param name="url"
>
value="jdbc:mysql://192.168.11.240:3306/jcr_repo?useUnicode=true&amp;charact
>  erEncoding=UTF-8" />
>                                         <param name="user" value="root" />
>                                         <param name="password"
value="root"
>  />
>                                         <param name="schema"
value="mysql"/>
>                                         <param name="schemaObjectPrefix"
>  value="J_V_PM_" />
>                                         <param name="externalBLOBs"
>  value="false" />
>                                 </PersistenceManager>
>
>     </Versioning>
>
>     <!--
>         Search index for content that is shared repository wide
>         (/jcr:system tree, contains mainly versions)
>     -->
>     <SearchIndex
>  class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
>         <param name="path" value="${rep.home}/repository/index"/>
>         <param name="textFilterClasses"
>
value="org.apache.jackrabbit.extractor.MsWordTextExtractor,org.apache.jackra
>
bbit.extractor.MsExcelTextExtractor,org.apache.jackrabbit.extractor.MsPowerP
>
ointTextExtractor,org.apache.jackrabbit.extractor.PdfTextExtractor,org.apach
>
e.jackrabbit.extractor.OpenOfficeTextExtractor,org.apache.jackrabbit.extract
>
or.RTFTextExtractor,org.apache.jackrabbit.extractor.HTMLTextExtractor,org.ap
>  ache.jackrabbit.extractor.XMLTextExtractor"/>
>         <param name="extractorPoolSize " value="2"/>
>         <param name="supportHighlighting" value="true"/>
>     </SearchIndex>
>
>     <!--
>         Cluster Configuration
>
>         This is sample configuration for mysql persistence that can be
used
>  for
>         clustering Jackrabbit. For other databases, change the
connection,
>         credentials, and schema settings.
>         -->
>
>
>     <Cluster id="node_2">
>                 <Journal
>  class="org.apache.jackrabbit.core.journal.DatabaseJournal">
>                         <param name="revision"
>  value="${rep.home}/revision"/>
>                         <param name="driver"
value="com.mysql.jdbc.Driver"/>
>                         <param name="url"
>
value="jdbc:mysql://192.168.11.240:3306/jcr_repo?useUnicode=true&amp;charact
>  erEncoding=UTF-8" />
>                         <param name="user" value="root" />
>                         <param name="password" value="root" />
>                         <param name="schema" value="mysql"/>
>                         <param name="schemaObjectPrefix" value="J_C_"/>
>                 </Journal>
>     </Cluster>
>
>  </Repository>
>
>
----------------------------------------------------------------------------
>
>


Mime
View raw message