jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Guggisberg" <stefan.guggisb...@gmail.com>
Subject Re: oracle, jackrabbit, tomcat
Date Tue, 12 Dec 2006 13:05:28 GMT
hi arif,

i suggest you download the latest realease (1.1.1).

all you have to basically do is modifying the two
<PersistenceManager/> configuration elements in
your repository configuration (repository.xml).

below is a sample config for oracle; you'll probably
have to adapt the "url", "user" and "password" parameters.
and make sure your oracle jdbc driver is on the classpath.

cheers
stefan

//////////////////////////////////////////////////////////////////////////////////////////////

<?xml version="1.0" encoding="ISO-8859-1"?>
<Repository>
    <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
        <param name="path" value="${rep.home}/repository"/>
    </FileSystem>

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

        <LoginModule
class="org.apache.jackrabbit.core.security.SimpleLoginModule">
        </LoginModule>
    </Security>

    <Workspaces rootPath="${rep.home}/workspaces" defaultWorkspace="default"/>
    <Workspace name="${wsp.name}">
        <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
            <param name="path" value="${wsp.home}"/>
        </FileSystem>

        <PersistenceManager
class="org.apache.jackrabbit.core.state.db.OraclePersistenceManager">
            <param name="url" value="jdbc:oracle:thin:@127.0.0.1:1521:orcl"/>
            <param name="user" value="scott"/>
            <param name="password" value="tiger"/>
            <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.local.LocalFileSystem">
            <param name="path" value="${rep.home}/version"/>
        </FileSystem>

        <PersistenceManager
class="org.apache.jackrabbit.core.state.db.OraclePersistenceManager">
            <param name="url" value="jdbc:oracle:thin:@127.0.0.1:1521:orcl"/>
            <param name="user" value="scott"/>
            <param name="password" value="tiger"/>
            <param name="schemaObjectPrefix" value="version_"/>
            <param name="externalBLOBs" value="false"/>
        </PersistenceManager>
    </Versioning>

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

</Repository>

//////////////////////////////////////////////////////////////////////////////////////////////

Mime
View raw message