hi,
On Jan 16, 2008 2:04 PM, alopez <[EMAIL PROTECTED]> wrote:
>
> Hi all,
> I was trying to configure JackRabbit in order to get everything stored in an
> Oracle Database, and trying to not create any files on the LocalFileSystem.
>
> But I'm still finding this file and this folder
> ${rep.home}/workspaces/${defaultWorkspace}
> ${rep.home}/.lock
>
> Is there any option in order of not creating any File/Directory on
> LocalFileSystem?
no. the repository .lock file is always created in the (physical)
repository home directory.
this file guards against multiple repository instantiation.
additionally, you'll get a directory per workspace on disk, regardless
of your virtual file
system configuration. that's by design. however, only the per
workspace lucene index
will be stored on disk (if you specified a non-disk based virtual
workspace file system).
the idea of storing the index in the virtual file system had been
considered early on but
had been rejected for performance reasons.
please note that none of the data written to the local disk (when
using DbFileSystem)
represents repository state. if you e.g. delete the lucene index it
will be automatically
recreated on next startup.
cheers
stefan
>
> Repository Config creates a folder using java.io.File instead of
> OracleFileSystem
>
> org.apache.jackrabbit.core.config.RepositoryConfig
>
> // The physical workspace home directory on disk (TODO encode name?)
> File directory = new File(workspaceDirectory, name);
>
> // Create the physical workspace directory, fail if it exists
> // or cannot be created
> if (!directory.mkdir()) {
> if (directory.exists()) {
> throw new ConfigurationException(
> "Workspace directory already exists: " + name);
> } else {
> throw new ConfigurationException(
> "Failed to create workspace directory: " + name);
> }
> }
>
> <?xml version="1.0"?>
> <!DOCTYPE Repository PUBLIC "-//The Apache Software Foundation//DTD
> Jackrabbit 1.2//EN"
>
> "http://jackrabbit.apache.org/dtd/repository-1.2.dtd">
> <Repository>
> <FileSystem class="org.apache.jackrabbit.core.fs.db.OracleFileSystem">
>
>
>
>
> </FileSystem>
> <Security appName="Jackrabbit">
> <AccessManager
> class="org.apache.jackrabbit.core.security.SimpleJBossAccessManager">
> </AccessManager>
> <LoginModule
> class="org.jboss.security.auth.spi.UsersRolesLoginModule"
> </LoginModule>
> </Security>
> <Workspaces rootPath="${rep.home}/workspaces"
> defaultWorkspace="JackRabbitWS" configRootPath="/configRootPath" />
> <Workspace name="JackRabbitWS">
> <FileSystem
> class="org.apache.jackrabbit.core.fs.db.OracleFileSystem">
>
>
>
>
> </FileSystem>
> <PersistenceManager
> class="org.apache.jackrabbit.core.persistence.db.OraclePersistenceManager">
>
>
>
>
>
> </PersistenceManager>
> </Workspace>
> </Repository>
>
> thanks in advance
>
>
>
> --
> View this message in context:
> http://www.nabble.com/Workspaces-Configuration---tp14879928p14879928.html
> Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
>
>