jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Thompson" <elephant...@gmail.com>
Subject Repository Persistence
Date Wed, 14 Feb 2007 16:42:01 GMT
Hello all,

In my application, I have Jackrabbit configured via Spring:

    <bean id="repository" class="
org.springmodules.jcr.jackrabbit.RepositoryFactoryBean">
        <!-- normal factory beans params -->
        <property name="configuration" value="classpath:jackrabbit-repo.xml
"/>
        <property name="homeDir" value="${jcr.homedir}"/>
    </bean>

I'm using DbFileSystem and SimpleDbPersistenceManager to persist repository
objects to a SQL Server DB.  However, if I delete the Jackrabbit directories
in my application, I lose the contents of the repository.

Do I have a mistake in my configuration, or does Jackrabbit use local
filesystem resources regardless of its database use?



Here's my repository.xml:

<Repository>
    <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
        <param name="driver" value="
com.microsoft.sqlserver.jdbc.SQLServerDriver"/>
        <param name="url"
value="jdbc:sqlserver://dbserver:1433;databaseName=jackrabbit"/>
        <param name="schema" value="mssql"/>
        <param name="user" value="test"/>
        <param name="password" value="test"/>
        <param name="schemaObjectPrefix" value="rep_"/>
    </FileSystem>

    <Security appName="Jackrabbit">
        <AccessManager class="
org.apache.jackrabbit.core.security.SimpleAccessManager">
        </AccessManager>

        <LoginModule class="
org.apache.jackrabbit.core.security.SimpleLoginModule">
           <param name="anonymousId" value="anonymous"/>
        </LoginModule>
    </Security>

    <Workspaces rootPath="${rep.home}/workspaces"
defaultWorkspace="default"/>
    <Workspace name="${wsp.name}">
        <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
            <param name="driver" value="
com.microsoft.sqlserver.jdbc.SQLServerDriver"/>
            <param name="url"
value="jdbc:sqlserver://dbserver:1433;databaseName=jackrabbit"/>
            <param name="schema" value="mssql"/>
            <param name="user" value="test"/>
            <param name="password" value="test"/>
            <param name="schemaObjectPrefix" value="wsk_"/>
        </FileSystem>
        <PersistenceManager class="
org.apache.jackrabbit.core.state.db.SimpleDbPersistenceManager">
            <param name="driver" value="
com.microsoft.sqlserver.jdbc.SQLServerDriver"/>
            <param name="url"
value="jdbc:sqlserver://dbserver:1433;databaseName=jackrabbit"/>
            <param name="schema" value="mssql"/>
            <param name="user" value="test"/>
            <param name="password" value="test"/>
            <param name="schemaObjectPrefix" value="${wsp.name}_"/>
            <param name="externalBLOBs" value="false"/>
        </PersistenceManager>
        <SearchIndex class="
org.apache.jackrabbit.core.query.lucene.SearchIndex">
            <param name="path" value="${wsp.home}/index"/>
        </SearchIndex>
    </Workspace>

    <Versioning rootPath="${rep.home}/version">
        <FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
            <param name="driver" value="
com.microsoft.sqlserver.jdbc.SQLServerDriver"/>
            <param name="url"
value="jdbc:sqlserver://dbserver:1433;databaseName=jackrabbit"/>
            <param name="schema" value="mssql"/>
            <param name="user" value="test"/>
            <param name="password" value="test"/>
            <param name="schemaObjectPrefix" value="ver_"/>
        </FileSystem>

        <PersistenceManager class="
org.apache.jackrabbit.core.state.db.SimpleDbPersistenceManager">
            <param name="driver" value="
com.microsoft.sqlserver.jdbc.SQLServerDriver"/>
            <param name="url"
value="jdbc:sqlserver://dbserver:1433;databaseName=jackrabbit"/>
            <param name="schema" value="mssql"/>
            <param name="user" value="test"/>
            <param name="password" value="test"/>
            <param name="externalBLOBs" value="false"/>
            <param name="schemaObjectPrefix" value="version_"/>
        </PersistenceManager>
    </Versioning>

    <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex
">
        <param name="path" value="${rep.home}/repo/index"/>
    </SearchIndex>
</Repository>

-Brian

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message