jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Jackrabbit Wiki] Update of "JackRabbitOnTomcat6" by SteveDalton
Date Tue, 30 Dec 2008 09:17:04 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jackrabbit Wiki" for change notification.

The following page has been changed by SteveDalton:
http://wiki.apache.org/jackrabbit/JackRabbitOnTomcat6

------------------------------------------------------------------------------
  
  Ok, this is the fiddly part. Edit /var/lib/tomcat6/temp/jackrabbit and find all the occurances
of something like this:
  
+ === PersistenceManager ===
+ 
+ This stores all the repository in mysql - all the file config is still on the file system
+ 
  {{{
  <PersistenceManager class="org.apache.jackrabbit.core.persistence.bundle.DerbyPersistenceManager">
    <param name="url" value="jdbc:derby:${wsp.home}/db;create=true"/>
@@ -65, +69 @@

    <param name="schema" value="mysql"/>
    <param name="schemaObjectPrefix" value="pm_someuniqueprefix_"/>
  </PersistenceManager>
+ }}}
+ 
+ === DbFileSystem ===
+ 
+ This part is optional, but if you do this ''everything'' is stored in the mysql database.
Find sections like this:
+ 
+ {{{
+ <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
+   <param name="path" value="${rep.home}/repository"/>
+ </FileSystem>
+ }}}
+ 
+ and replace with this:
+ 
+ {{{
+ <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/jackrabbit"/>
+   <param name="user" value="jackrabbit"/>
+   <param name="password" value="jackrabbit"/>
+   <param name="schema" value="mysql"/>
+   <param name="schemaObjectPrefix" value="fs_someuniqueprefix_"/>
+ </FileSystem>
  }}}
  
  Make sure you change the part someuniqueprefix to something unique for the type of repository
configuration item you are modifying (ie. workspace, versioning etc)

Mime
View raw message